D3DXPlanedot function
Calculate the plane equation with the 4D vector.
definition:
FLOAT D3DXPLANEDOTOTOTOTOTOTOT (
Const D3DXPlane * PP,
Const D3DXVector4 * PV
);
parameter:
PP
[in] points to the planar equation coefficient of the D3DXPLANE structure.
PV
[in] Point 4D vector of D3DXVector4.
return value:
Returns the planar equation coefficient with a 4D vector.
Description:
If the planar equation coefficient is (A, B, C, D) and 4-D vectors (X, Y, Z, W), then the return value calculates the following formula: a * x b * y c * z D * w.
The D3DXPlanedot function can be used to check the relationship between the plane and qi coordinates, which is very useful. For example, if the 4D vector is in the plane, or the plane is on one side.
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXPlanedotcoord, D3DXPlanedotnormal