Funzione D3DXVec4TransformArray (D3DX10Math.h)

Nota

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

Trasforma una matrice (x, y, z, w) da una determinata matrice.

Sintassi

D3DXVECTOR4* D3DXVec4TransformArray(
  _Inout_       D3DXVECTOR4 *pOut,
  _In_          UINT        OutStride,
  _In_    const D3DXVECTOR4 *pV,
  _In_          UINT        VStride,
  _In_    const D3DXMATRIX  *pM,
  _In_          UINT        n
);

Parametri

pOut [in, out]

Tipo: D3DXVECTOR4*

Puntatore alla matrice D3DXVECTOR4 risultante dall'operazione.

OutStride [in]

Tipo: UINT

Stride tra vettori nel flusso di dati di output.

pV [in]

Tipo: const D3DXVECTOR4*

Puntatore alla matrice D3DXVECTOR4 di origine.

VStride [in]

Tipo: UINT

Stride tra vettori nel flusso di dati di input.

pM [in]

Tipo: const D3DXMATRIX*

Puntatore alla struttura D3DXMATRIX di origine.

n [in]

Tipo: UINT

Numero di elementi nella matrice.

Valore restituito

Tipo: D3DXVECTOR4*

Puntatore a una struttura D3DXVECTOR4 che rappresenta la matrice trasformata.

Commenti

Questa funzione trasforma la matrice pV (x, y, z, w) in base alla matrice pM.

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

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h

Vedi anche

Funzioni matematiche