Microsoft DirectX 8.1 (C++) |
Computes the dot-product of a plane and a 3-D vector. The w parameter of the vector is assumed to be 1.
FLOAT D3DXPlaneDotCoord( CONST D3DXPLANE* pP, CONST D3DXVECTOR3* pV );
The dot-product of the plane and 3-D vector.
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*1. The D3DXPlaneDotCoord function is useful for determining the plane's relationship with a coordinate in 3-D space.
Header: Declared in D3dx8math.h.
Import Library: Use D3dx8.lib.