LPD3DVECTOR D3DRMVectorNormalize(LPD3DVECTOR lpv);
Scales a vector so that its modulus is 1.
·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.
lpv
Address of a D3DVECTOR structure that will contain the result of the scaling operation.