This document is archived and information here might be outdated. Recommended version. |
Normalize the vector (scale it to magnitude=1).
[Visual Basic .NET]
Public Sub Normalize ( _
)
[C#] public void Normalize ( );
[C++]
HRESULT Normalize(
void
);
Normalizes the Vector to a unit vector with Magnitude=1 and the same direction as the original vector.
Normalize is the same as Scaling the vector by 1 / Magnitude.