Platform SDK: DirectX

D3DXVECTOR4

The D3DXVECTOR4 structure describes a vector in four-dimensional (4-D) space.

typedef struct D3DXVECTOR4 {
  float x, y, z, w;
} D3DXVECTOR4;

Members

x
The x-component.
y
The y-component.
z
The z-component.
w
The w-component.

Remarks

C++ programmers can take advantage of operator overloading and type casting. The C++ implementation of the D3DXVECTOR4 structure implements overloaded constructors and overloaded assignment, unary and binary (including equality) operators. For more information, see C++ Specific Features.

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 7.0.
  Header: Declared in d3dxmath.h.

See Also

D3DXVec4Length, D3DXVec4LengthSq, D3DXVec4Dot, D3DXVec4Add, D3DXVec4Subtract, D3DXVec4Minimize, D3DXVec4Maximize, D3DXVec4Scale, D3DXVec4Lerp, D3DXVec4Cross, D3DXVec4Normalize, D3DXVec4Hermite, D3DXVec4BaryCentric, D3DXVec4Transform