D3DXMAMATRIXROTIONYAWPITCHROLL function

xiaoxiao2021-03-06  79

D3DXMAMATRIXROTIONYAWPITCHROLL function

Create a rotating matrix with the specified Y-axis angle, around the X-axis angle and the z-axis angle.

definition:

D3DXMAMATRIX * WINAPI D3DXMATRIXROTIONYAWPITCHROLL (

D3DXMAMATRIX * POUT,

Float YAW,

Float Pitch,

Float roll

);

parameter:

pout

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

YAW

[IN] Whenesses the Y-axis rotation angle (unit radians).

Pitch

[IN] around the X-axis rotation angle (unit radians).

Roll

[IN] Whenesses the Z-axis rotation angle (unit radians).

return value:

The rotation matrix of the D3Dxmatrix structure is rotated around the Y, X and Z axis.

Description:

This allows the function D3DXMAMATRIXROTATIONYAWPITCHROLL to use parameters of other functions.

The transform order of this matrix is ​​to rotate about the Z axis, and then rotate about the X-axis, and finally the Y-axis is rotated. These are all relative to the local coordinate system of the object.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXMAMATRIXROTIONAXIS, D3DXMATRIXROTIONQ, D3DXMATRIXROTIONX, D3DXMATRIXROTIONY, D3DXMATRIXROTIONZ

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

New Post(0)