Share via


D3DMXVECTOR3 (Windows Embedded CE 6.0)

1/6/2010

This structure describes a three-dimensional vector using floating point numbers.

Syntax

typedef struct D3DMXVECTOR3 {
#ifdef __cplusplus
  public:
    D3DMXVECTOR3() {};
    D3DMXVECTOR3( CONST FLOAT * );
    D3DMXVECTOR3( CONST D3DMVECTOR& );
    D3DMXVECTOR3( FLOAT x, FLOAT y, FLOAT z );
    // casting
    operator FLOAT* ();
    operator CONST FLOAT* () const;
    // assignment operators
    D3DMXVECTOR3& operator += ( CONST D3DMXVECTOR3& );
    D3DMXVECTOR3& operator -= ( CONST D3DMXVECTOR3& );
    D3DMXVECTOR3& operator *= ( FLOAT );
    D3DMXVECTOR3& operator /= ( FLOAT );
    // unary operators
    D3DMXVECTOR3 operator + () const;
    D3DMXVECTOR3 operator - () const;
    // binary operators
    D3DMXVECTOR3 operator + ( CONST D3DMXVECTOR3& ) const;
    D3DMXVECTOR3 operator - ( CONST D3DMXVECTOR3& ) const;
    D3DMXVECTOR3 operator * ( FLOAT ) const;
    D3DMXVECTOR3 operator / ( FLOAT ) const;
    friend D3DMXVECTOR3 operator * ( FLOAT, CONST struct D3DMXVECTOR3& );
    BOOL operator == ( CONST D3DMXVECTOR3& ) const;
    BOOL operator != ( CONST D3DMXVECTOR3& ) const;
        
#endif //__cplusplus
  FLOAT x, y, z;
} D3DMXVECTOR3, *LPD3DMXVECTOR3;

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.

Requirements

Header d3dmx.h
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

D3DMX Structures
D3DMXVECTOR3FXD