Microsoft DirectX 8.1 (C++)

D3DXPlaneNormalize

Returns the normal of a plane.

D3DXPLANE* D3DXPlaneNormalize(
  D3DXPLANE* pOut,
  CONST D3DXPLANE* pP
); 

Parameters

pOut
[in, out] Pointer to the D3DXPLANE structure that is the result of the operation.
pP
[in] Pointer to the source D3DXPLANE structure.

Return Values

Pointer to a D3DXPLANE structure, representing the normal of the plane.

Remarks

D3DXPlaneNormalize normalizes a plane so that |a,b,c| == 1.

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXPlaneNormalize function can be used as a parameter for another function.

Requirements

  Header: Declared in D3dx8math.h.
  Import Library: Use D3dx8.lib.