The D3D_OVERLOADS constructors for the D3DVECTOR structure offer a convenient way for C++ programmers to create vectors.
_D3DVECTOR() { }
_D3DVECTOR(D3DVALUE f);
_D3DVECTOR(D3DVALUE _x, D3DVALUE _y, D3DVALUE _z);
_D3DVECTOR(const D3DVALUE f[3]);
These constructors are defined as follows:
inline _D3DVECTOR::_D3DVECTOR(D3DVALUE f)
{ x = y = z = f; }
inline _D3DVECTOR::_D3DVECTOR(D3DVALUE _x, D3DVALUE _y, D3DVALUE _z)
{ x = _x; y = _y; z = _z; }
inline _D3DVECTOR::_D3DVECTOR(const D3DVALUE f[3])
{ x = f[0]; y = f[1]; z = f[2]; }
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.