Microsoft DirectX 8.1 (C++)

D3DXVECTOR2

Describes a vector in two-dimensional (2-D) space.

typedef struct D3DXVECTOR2 {
  FLOAT x, y;
} D3DXVECTOR2;

Members

x
The x component.
y
The y component.

Remarks

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

Requirements

  Header: Declared in D3dx8math.h.