D3DVALUE D3DRMVectorModulus(LPD3DVECTOR lpv);
Returns the length of a vector (that is, sqrt(x*x + y*y + z*z)).
·Returns the length of the D3DVECTOR structure if successful, or zero otherwise.
lpv
Address of the D3DVECTOR structure whose length is returned.