Funzione D3DXPlaneFromPointNormal (D3DX10Math.h)

Nota

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

Costruisce un piano da un punto e un normale.

Sintassi

D3DXPLANE* D3DXPlaneFromPointNormal(
  _Inout_       D3DXPLANE   *pOut,
  _In_    const D3DXVECTOR3 *pPoint,
  _In_    const D3DXVECTOR3 *pNormal
);

Parametri

pOut [in, out]

Tipo: D3DXPLANE*

Puntatore al D3DXPLANE che è il risultato dell'operazione.

pPoint [in]

Tipo: const D3DXVECTOR3*

Puntatore a un D3DXVECTOR3, definendo il punto usato per costruire il piano.

pNormal [in]

Tipo: const D3DXVECTOR3*

Puntatore a una struttura D3DXVECTOR3, definendo la normale utilizzata per costruire il piano.

Valore restituito

Tipo: D3DXPLANE*

Puntatore alla struttura D3DXPLANE costruita dal punto e dalla normale.

Commenti

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

Requisiti

Requisito Valore
Intestazione
D3DX10Math.h
Libreria
D3DX10.lib

Vedi anche

Funzioni matematiche