Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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 FIXEDvalue 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