Platform SDK: DirectX

Max

This helper function returns the maximum component of the specified vector. Max is part of the suite of extra functionality that is available to C++ programmers who define D3D_OVERLOADS.

D3DVALUE Max (const _D3DVECTOR& v);

This function is defined as follows:

inline D3DVALUE
Max (const _D3DVECTOR& v)
{
   D3DVALUE ret = v.x;
   if (ret < v.y) ret = v.y;
   if (ret < v.z) ret = v.z;
   return ret;
}

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 5.0 or later.
  Header: Declared in d3d.h.

See Also

Min