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

typedef struct D3DXVECTOR4 {
  FLOAT x, y, z, w;


  • x
    The x component.
  • y
    The y component.
  • z
    The z component.
  • w
    The w component.


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.


OS Versions: Windows CE .NET 4.0 and later.
Header: D3dx8math.h.

See Also

Direct3DX Structures | D3DXVECTOR4 Extensions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.