Vector2Extensions.SetUniformly

Extension Method in Vector2Extensions

Declaration

public static Vector2 SetUniformly(this Vector2 vector, float value)

Description

Sets all components of the vector to the given value.

Parameters

vectorThe vector to set.
valueThe uniform component value.

Returns

Vector2A new vector with the uniform component value.