Condividi tramite


Funzione D3DXVec3TransformNormal (D3DX10Math.h)

Nota

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

Trasforma il vettore 3D normale dalla matrice specificata.

Sintassi

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

Parametri

pOut [in, out]

Tipo: D3DXVECTOR3*

Puntatore al D3DXVECTOR3 che è il risultato dell'operazione.

pV [in]

Tipo: const D3DXVECTOR3*

Puntatore alla struttura D3DXVECTOR3 di origine.

pM [in]

Tipo: const D3DXMATRIX*

Puntatore alla struttura D3DXMATRIX di origine.

Valore restituito

Tipo: D3DXVECTOR3*

Puntatore a una struttura D3DXVECTOR3 che è il vettore trasformato.

Commenti

Questa funzione trasforma il vettore (pV-x, pV-y>, pV-z>>, 0) dalla matrice puntata da pM.

Se si vuole trasformare una normale, la matrice passata a questa funzione deve essere il trasposto dell'inverso della matrice utilizzata per trasformare un punto.

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

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h

Vedi anche

Funzioni matematiche