Share via


D3DMXVECTOR3FXD

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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

Members

  • x
    A FIXED value for the x-component.
  • y
    A FIXED value for the y-component.
  • z
    A FIXED value for the z-component.

Requirements

Header d3dmx.h
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

D3DMX Structures
D3DMXVECTOR3