Platform SDK: DirectX

D3DXVECTOR4 Extensions

The D3DXVECTOR4 structure supplies the following operator overloads and type casts.

#ifdef __cplusplus
public:
  D3DXVECTOR4() {};
  D3DXVECTOR4( const float* );
  D3DXVECTOR4( float x, float y, float z, float w );
 
  // casting
  operator float* ();
  operator const float* () const;
 
  // assignment operators
  D3DXVECTOR4& operator += ( const D3DXVECTOR4& );
  D3DXVECTOR4& operator -= ( const D3DXVECTOR4& );
  D3DXVECTOR4& operator *= ( float );
  D3DXVECTOR4& operator /= ( float );
 
  // unary operators
  D3DXVECTOR4 operator + () const;
  D3DXVECTOR4 operator - () const;
 
  // binary operators
  D3DXVECTOR4 operator + ( const D3DXVECTOR4& ) const;
  D3DXVECTOR4 operator - ( const D3DXVECTOR4& ) const;
  D3DXVECTOR4 operator * ( float ) const;
  D3DXVECTOR4 operator / ( float ) const;
 
  friend D3DXVECTOR4 operator * ( float, const D3DXVECTOR4& );
 
  BOOL operator == ( const D3DXVECTOR4& ) const;
  BOOL operator != ( const D3DXVECTOR4& ) const;
 
public:
#endif //__cplusplus