D3DXPlaneNormalize
D3DXPlaneNormalize
Normalizes the plane coefficients so that the plane normal has unit length.
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 that represents the normal of the plane.
Remarks
This function 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, this function can be used as a parameter for another function.
Requirements
Header: Declared in D3dx9math.h.
Library:
Use D3dx9.lib.