[This is preliminary documentation and is subject to change.]

Normalizes the specified vector such that its length is equal to one. (Costly method!)

Namespace: org.critterai
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static Vector2 Normalize(
	Vector2 v
)
Public Shared Function Normalize ( _
	v As Vector2 _
) As Vector2
public:
static Vector2 Normalize(
	Vector2 v
)

Parameters

v
Vector2
A vector.

Return Value

The normalized vector.

See Also