Condividi tramite


struttura D3DXVECTOR2_16F

Nota

La libreria di utilità D3DX10 è deprecata. È consigliabile usare invece DirectXMath .

Descrive un vettore a due componenti, inclusi gli overload degli operatori e i cast dei tipi. Uguale a D3DXVECTOR2, ma usa valori a virgola mobile a 16 bit per x, y e z.

Sintassi

typedef struct D3DXVECTOR2_16F {
  FLOAT x;
  FLOAT y;
} D3DXVECTOR2_16F, *LPD3DXVECTOR2_16F;

Members

x

Tipo: FLOAT

Componente x.

y

Tipo: FLOAT

Componente y.

Commenti

D3DXVECTOR2_16F dispone delle estensioni C++ seguenti.

estensioni D3DXVECTOR2_16F


typedef struct D3DXVECTOR2_16F
{
#ifdef __cplusplus
public:
    D3DXVECTOR2_16F() {};
    D3DXVECTOR2_16F( CONST FLOAT * );
    D3DXVECTOR2_16F( CONST D3DXFLOAT16 * );
    D3DXVECTOR2_16F( CONST D3DXFLOAT16 &x, CONST D3DXFLOAT16 &y );

    // casting
    operator D3DXFLOAT16* ();
    operator CONST D3DXFLOAT16* () const;

    // binary operators
    BOOL operator == ( CONST D3DXVECTOR2_16F& ) const;
    BOOL operator != ( CONST D3DXVECTOR2_16F& ) const;

public:
#endif //__cplusplus
    D3DXFLOAT16 x, y;

} D3DXVECTOR2_16F, *LPD3DXVECTOR2_16F;

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h

Vedi anche

Strutture D3DX