Normalize
Summary
public void Normalize()
Turns the current vector into a unit vector. The result is a vector one unit in length pointing in the same direction as the original vector.
Summary
public static Vector2 Normalize(Vector2 value)
Creates a unit vector from the specified vector. The result is a vector one unit in length pointing in the same direction as the original vector.
Returns
Parameters
- Vector2 value
Summary
public static void Normalize(ref Vector2 value, out Vector2 result)
Creates a unit vector from the specified vector, writing the result to a user-specified variable. The result is a vector one unit in length pointing in the same direction as the original vector.