Funzione D3DXVec3Transform (D3DX10Math.h)

Nota

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

Trasforma il vettore (x, y, z, 1) di una determinata matrice.

Sintassi

D3DXVECTOR4* D3DXVec3Transform(
  _Inout_       D3DXVECTOR4 *pOut,
  _In_    const D3DXVECTOR3 *pV,
  _In_    const D3DXMATRIX  *pM
);

Parametri

pOut [in, out]

Tipo: D3DXVECTOR4*

Puntatore alla struttura D3DXVECTOR4 risultante dall'operazione.

pV [in]

Tipo: const D3DXVECTOR3*

Puntatore all'origine D3DXVECTOR3.

pM [in]

Tipo: const D3DXMATRIX*

Puntatore alla struttura D3DXMATRIX di origine.

Valore restituito

Tipo: D3DXVECTOR4*

Puntatore a una struttura D3DXVECTOR4 che è il vettore trasformato.

Commenti

Questa funzione trasforma il vettore, pV (x, y, z, 1) in base alla matrice pM.

Il valore restituito per questa funzione è lo stesso valore restituito nel parametro pOut. In questo modo, la funzione D3DXVec3Transform può essere usata come parametro per un'altra funzione.

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h

Vedi anche

Funzioni matematiche