D3DRMVectorNormalize

Scales a vector so that its modulus is 1.

LPD3DVECTOR D3DRMVectorNormalize(
LPD3DVECTOR lpv
);

Parameters

lpv

Address of a D3DVECTOR structure that will contain the result of the scaling operation.

Return Values

Returns the address of the vector that was passed as the first parameter if successful, or zero if an error occurs, such as if, for example, a zero vector was passed.