Vector2.Normalize Method
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.
Overload List
Name | Description |
---|---|
Vector2.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. |
Vector2.Normalize (Vector2) | 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. |
Vector2.Normalize (Vector2, Vector2) | 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. |
See Also
Reference
Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace