D3DXPlaneDotCoord
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXPlaneDotCoord Function


Computes the dot product of a plane and a 3-D vector. The w parameter of the vector is assumed to be 1.

Syntax

FLOAT D3DXPlaneDotCoord(      

    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*1. The D3DXPlaneDotCoord function is useful for determining the plane's relationship with a coordinate in 3-D space.

Function Information

Headerd3dx9math.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXPlaneDot, D3DXPlaneDotNormal


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.