D3DXPLANEDOTCOORD function

xiaoxiao2021-03-06  79

D3DXPLANEDOTCOORD function

Calculate the point of the 3-D vector, the W parameter is set to 1.

definition:

FLOAT D3DXPLANEDOTCOORD (

Const D3DXPlane * PP,

Const D3DXVector3 * PV

);

parameter:

PP

[in] points to the planar equation coefficient of the D3DXPLANE structure.

PV

[in] Pointing vector of D3DXVector3 structure.

return value:

The result of the plane and 3-D vector points.

Description:

If the planar equation coefficient is (A, B, C, D), and 3-D vectors are (x, y, z), then the return value is calculated by the following formula: a * x b * y c * z D * 1. The D3DXPlanedotcoord function can be used to detect the relationship between the plane and 3-D vector.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXPLANEDOT, D3DXPLANEDOTNORMAL

转载请注明原文地址:https://www.9cbs.com/read-107694.html

New Post(0)