Platform SDK: DirectX |
The D3DXVECTOR2 structure describes a vector in two-dimensional (2-D) space.
typedef struct D3DXVECTOR2 { float x, y; } D3DXVECTOR2;
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.
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.
D3DXVec2Length, D3DXVec2LengthSq, D3DXVec2Dot, D3DXVec2CCW, D3DXVec2Add, D3DXVec2Subtract, D3DXVec2Minimize, D3DXVec2Maximize, D3DXVec2Scale, D3DXVec2Lerp, D3DXVec2Normalize, D3DXVec2Hermite, D3DXVec2Hermite, D3DXVec2Transform, D3DXVec2TransformCoord, D3DXVec2TransformNormal