Funzione D3DXVec4Normalize (D3DX10Math.h)

Nota

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

Restituisce la versione normalizzata di un vettore 4D.

Sintassi

D3DXVECTOR4* D3DXVec4Normalize(
  _Inout_       D3DXVECTOR4 *pOut,
  _In_    const D3DXVECTOR4 *pV
);

Parametri

pOut [in, out]

Tipo: D3DXVECTOR4*

Puntatore a D3DXVECTOR4 che è il risultato dell'operazione.

pV [in]

Tipo: const D3DXVECTOR4*

Puntatore alla struttura D3DXVECTOR4 di origine.

Valore restituito

Tipo: D3DXVECTOR4*

Puntatore a una struttura D3DXVECTOR4 che rappresenta la versione normalizzata del vettore.

Commenti

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

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h

Vedi anche

Funzioni matematiche