Funzione D3DXQuaternionNormalize (D3DX10Math.h)

Nota

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

Calcola un quaternione di lunghezza unità.

Sintassi

D3DXQUATERNION* D3DXQuaternionNormalize(
  _Inout_       D3DXQUATERNION *pOut,
  _In_    const D3DXQUATERNION *pQ
);

Parametri

pOut [in, out]

Tipo: D3DXQUATERNION*

Puntatore a D3DXQUATERNION che è il risultato dell'operazione.

pQ [in]

Tipo: const D3DXQUATERNION*

Puntatore alla struttura D3DXQUATERNION di origine.

Valore restituito

Tipo: D3DXQUATERNION*

Puntatore a una struttura D3DXQUATERNION normale del quaternione.

Commenti

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

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h
Libreria
D3DX10.lib

Vedi anche

Funzioni matematiche