DirectX SDK

D3DXPlaneDotCoord

The 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.

float D3DXPlaneDotCoord(
  const D3DXPLANE* pP,
  const D3DXVECTOR3* pV
); 

Parameters

pP
A pointer to a source D3DXPLANE structure.
pV
A pointer to a source D3DXVECTOR3 structure.

Return Values

The dot-product of the given 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.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxmath.h.
  Library: Use d3dx.lib.

See Also

D3DXPlaneDot, D3DXPlaneDotNormal