Funzione D3DXVec2Normalize (D3DX10Math.h)

Nota

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

Restituisce la versione normalizzata di un vettore 2D.

Sintassi

D3DXVECTOR2* D3DXVec2Normalize(
  _Inout_       D3DXVECTOR2 *pOut,
  _In_    const D3DXVECTOR2 *pV
);

Parametri

pOut [in, out]

Tipo: D3DXVECTOR2*

Puntatore all'oggetto D3DXVECTOR2 risultante dall'operazione.

pV [in]

Tipo: const D3DXVECTOR2*

Puntatore alla struttura D3DXVECTOR2 di origine.

Valore restituito

Tipo: D3DXVECTOR2*

Puntatore a una struttura D3DXVECTOR2 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 D3DXVec2Normalize può essere usata come parametro per un'altra funzione.

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h
Libreria
D3DX10.lib

Vedi anche

Funzioni matematiche