D3DRMVectorModulus

D3DVALUE D3DRMVectorModulus(LPD3DVECTOR lpv);

Returns the length of a vector according to the following formula:

·Returns the length of the D3DVECTOR structure if successful, or zero otherwise.

lpv

Address of the D3DVECTOR structure whose length is returned.