Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
D3DX Reference
Functions
Math Functions
 D3DXPlaneDotCoord

  Switch on low bandwidth view
D3DXPlaneDotCoord
Bb205387.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb205387.XDK_CHM_BANNER_right(en-us,VS.85).jpg

D3DXPlaneDotCoord

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

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 Values

The dot product of the plane and 3D vector.

Remarks

Given a plane (a, b, c, d) and a 3D 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 3D space.

Requirements

Header: Declared in D3dx9math.h.

Library: Use D3dx9.lib.

See Also

D3DXPlaneDot, D3DXPlaneDotNormal

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker