zl程序教程

您现在的位置是:首页 >  其它

当前栏目

D3DXMatrixRotationX 函数

函数
2023-09-14 09:10:37 时间

D3DXMatrixRotationX 函数


创建绕着X轴旋转矩阵。

定义:

D3DXMATRIX *WINAPI D3DXMatrixRotationX(      

    D3DXMATRIX *pOut,
    FLOAT Angle
);

参数:

pOut

[in, out] 指向D3DXMATRIX 结构的操作结果矩阵。

Angle

[in] 绕着X轴旋转的角度(单位是弧度)。角度计算方法是当朝着旋转轴的原点看去时,顺时针方向为正值。

返回值:

指向D3DXMATRIX 结构的绕着X轴旋转矩阵。

 

说明:

函数返回值跟pOut 参数返回值是一样的。这样可以让函数D3DXMatrixRotationX作为其它函数的参数使用。

函数信息:

Header

d3dx9math.h

Import library

d3dx9.lib

Minimum operating systems

Windows 98

相关函数:

D3DXMatrixRotationAxis, D3DXMatrixRotationQuaternion, D3DXMatrixRotationY, D3DXMatrixRotationYawPitchRoll, D3DXMatrixRotationZ