SquareMagnitude

This helper function returns the square of the absolute value of the specified vector. SquareMagnitude is part of the suite of extra functionality that is available to C++ programmers who define D3D_OVERLOADS.

D3DVALUE SquareMagnitude (const _D3DVECTOR& v);

This function is defined as follows:

inline D3DVALUE

SquareMagnitude (const _D3DVECTOR& v)

{

return v.x*v.x + v.y*v.y + v.z*v.z;

}

See Also

Magnitude