Vector2.Normalize Method (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.
Syntax
'Declaration
Public Shared Function Normalize ( _
value As Vector2 _
) As Vector2
public static Vector2 Normalize (
Vector2 value
)
public:
static Vector2 Normalize(
Vector2 value
)
Parameters
Return Value
Type: Vector2
The created unit vector.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone