Platform SDK: DirectX |
The D3DXVECTOR2 structure supplies the following operator overloads and type casts.
#ifdef __cplusplus public: D3DXVECTOR2() {}; D3DXVECTOR2( const float * ); D3DXVECTOR2( float x, float y ); // casting operator float* (); operator const float* () const; // assignment operators D3DXVECTOR2& operator += ( const D3DXVECTOR2& ); D3DXVECTOR2& operator -= ( const D3DXVECTOR2& ); D3DXVECTOR2& operator *= ( float ); D3DXVECTOR2& operator /= ( float ); // unary operators D3DXVECTOR2 operator + () const; D3DXVECTOR2 operator - () const; // binary operators D3DXVECTOR2 operator + ( const D3DXVECTOR2& ) const; D3DXVECTOR2 operator - ( const D3DXVECTOR2& ) const; D3DXVECTOR2 operator * ( float ) const; D3DXVECTOR2 operator / ( float ) const; friend D3DXVECTOR2 operator * ( float, const D3DXVECTOR2& ); BOOL operator == ( const D3DXVECTOR2& ) const; BOOL operator != ( const D3DXVECTOR2& ) const; public: #endif //__cplusplus