Platform SDK: DirectX

D3DXVECTOR3

The D3DXVECTOR3 structure describes a vector in three-dimensional (3-D) space.

typedef struct D3DXVECTOR3 {
  float x, y, z;
} D3DXVECTOR3;

Members

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

Remarks

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

D3DXVec3Length, D3DXVec3LengthSq, D3DXVec3Dot, D3DXVec3Cross, D3DXVec3Add, D3DXVec3Subtract, D3DXVec3Minimize, D3DXVec3Maximize, D3DXVec3Scale, D3DXVec3Lerp, D3DXVec3Normalize, D3DXVec3Hermite, D3DXVec3BaryCentric, D3DXVec3Transform, D3DXVec3TransformCoord, D3DXVec3TransformNormal

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.