D3DXVEC3UNPROJECT functions

xiaoxiao2021-03-06  108

D3DXVEC3UNPROJECT functions

Put the vector from the screen space to the object space.

definition:

D3DXVECTOR3 * WINAPI D3DXVEC3UNPROJECT (D3DXVector3 * Pout,

Const D3DxVector3 * PV,

Const d3dviewport9 * PViewPort,

Const D3DXMAMATRIX * PPROJECTION,

Const d3dxmatrix * pVIEW,

Const d3dxmatrix * PWORLD

);

Parameters

pout

[IN, OUT] points to the operation result of the D3DXVECTOR3 structure.

PV

[in] Points to the vector of D3DXVector3.

PViewPort

[in] points to the viewport of the D3DViewPort9 structure.

PPROJECTION

[in] points to the projection matrix of the D3DXMatrix structure.

PVIEW

[in] Points to the D3DxMatrix structure of the viewing matrix.

PWORLD

[in] The world transformation matrix of D3DXMatrix structure.

return value:

Pointing the vector of the D3DxVector3 structure, which is the result of projecting vector from the screen space to the object space.

Description:

The function return value is the same as the POUT parameter. This allows functions D3DXVEC3UnProject to use parameters of other functions.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

Function related:

D3DXVEC3PROJECT

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

New Post(0)