This helper function returns the absolute value of the specified vector. Magnitude is part of the suite of extra functionality that is available to C++ programmers who define D3D_OVERLOADS.
D3DVALUE Magnitude (const _D3DVECTOR& v);
This function is defined as follows:
inline D3DVALUE
Magnitude (const _D3DVECTOR& v)
{
return (D3DVALUE) sqrt(SquareMagnitude(v));
}
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in d3d.h.