D3DXMatrixRotationAxis function

xiaoxiao2021-03-06  81

D3DXMatrixRotationAxis function

Create a rotation matrix that can rotate around any axis.

definition:

D3DXMAMATRIX * WINAPI D3DXMATRIXROTAXIS (

D3DXMAMATRIX * POUT,

Const D3DxVector3 * PV,

Float Angle

);

parameter:

pout

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

PV

[in] points to any axial vector. Please refer to D3DXVector3.

Angle

[IN] The angle of rotation around any axis (the unit is curved). The angle calculation method is when it looks at the origin toward the rotating shaft, the clockwise direction is positive.

return value:

A rotation matrix that is rotated about any axis.

Description:

The function return value is the same as the POUT parameter. This allows the function D3DxMatrixRotationAxis as a parameter of other functions.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXMAMATRIXROTIONQ, D3DXMATRIXROTIONX, D3DXMATRIXROTIONY, D3DXMATRIXROTIONYAWPITCHROLL, D3DXMATRIXROTIONZ

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

New Post(0)