Description
Normalizes a vector to unit length while retaining the ratio between its X, Y, and Z components.
Arguments
vector Pointer to the vector.
Return Value
The argument vector if successful, and NULL otherwise.
Comments
Note that it is an error to normalize a vector whose magnitude is zero.
See Also