RenderWare V2.1

Previous Page Index Next Page

RwV3d *

RwNormalize(RwV3d *vector);

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

RwAddVector()

RwCrossProduct()

RwDotProduct()

RwScaleVector()

RwSubtractVector()