D3DVECTOR Constructors

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]; }