D3DMXVECTOR4 (Windows Embedded CE 6.0)
1/6/2010
This structure describes a four-dimensional vector using floating point numbers.
Syntax
typedef struct D3DMXVECTOR4 {
#ifdef __cplusplus
public:
D3DMXVECTOR4() {};
D3DMXVECTOR4( CONST FLOAT* );
D3DMXVECTOR4( FLOAT x, FLOAT y, FLOAT z, FLOAT w );
// casting
operator FLOAT* ();
operator CONST FLOAT* () const;
// assignment operators
D3DMXVECTOR4& operator += ( CONST D3DMXVECTOR4& );
D3DMXVECTOR4& operator -= ( CONST D3DMXVECTOR4& );
D3DMXVECTOR4& operator *= ( FLOAT );
D3DMXVECTOR4& operator /= ( FLOAT );
// unary operators
D3DMXVECTOR4 operator + () const;
D3DMXVECTOR4 operator - () const;
// binary operators
D3DMXVECTOR4 operator + ( CONST D3DMXVECTOR4& ) const;
D3DMXVECTOR4 operator - ( CONST D3DMXVECTOR4& ) const;
D3DMXVECTOR4 operator * ( FLOAT ) const;
D3DMXVECTOR4 operator / ( FLOAT ) const;
friend D3DMXVECTOR4 operator * ( FLOAT, CONST D3DMXVECTOR4& );
BOOL operator == ( CONST D3DMXVECTOR4& ) const;
BOOL operator != ( CONST D3DMXVECTOR4& ) const;
public:
#endif //__cplusplus
FLOAT x, y, z, w;
} D3DMXVECTOR4, *LPD3DMXVECTOR4;
Members
- x
A FLOAT value for the x-component.
- y
A FLOAT value for the y-component.
- z
A FLOAT value for the z-component.
- w
A FLOAT value for the w-component.
Requirements
Header | d3dmx.h |
Windows Embedded CE | Windows Embedded CE 6.0 and later |