?/TD> |
Microsoft DirectX 9.0 |
Computes the dot product of a plane and a 3-D vector. The w parameter of the vector is assumed to be 0.
Syntax
FLOAT D3DXPlaneDotNormal(
CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV );
Parameters
- pP
- [in] Pointer to a source D3DXPLANE structure.
- pV
- [in] Pointer to a source D3DXVECTOR3 structure.
Return Value
The dot product of the plane and 3-D vector.
Remarks
Given a plane (a, b, c, d) and a 3-D vector (x, y, z) the return value of this function is a*x + b*y + c*z + d*0. The D3DXPlaneDotNormal function is useful for calculating the angle between the normal of the plane, and another normal.
Function Information
Header d3dx9math.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
D3DXPlaneDot, D3DXPlaneDotCoord