Platform SDK: DirectX

D3DXMatrixRotationZ

D3DXMatrixRotationZ 関数は、z 軸を回転軸として回転した行列を構築する。

D3DXMATRIX* D3DXMatrixRotationZ(
  D3DXMATRIX* pOut,
  float angle
); 

パラメータ

pOut
演算結果である D3DXMATRIX 構造体へのポインタ。
angle
回転角度 (ラジアン単位)。角度は、回転軸から原点に向かって時計回りに計測される。

戻り値

z 軸を回転軸として回転した D3DXMATRIX 構造体へのポインタ。

注意

この関数の戻り値は、pOut パラメータの戻り値と同じである。このように、D3DXMatrixRotationZ 関数を別の関数のパラメータとして使用できる。

動作環境

  Windows NT/2000 : Windows 2000 が必要。
  Windows 95/98 : Windows 95 以上が必要。Windows 95 用に再配布可能な形で使用可能。
  バージョン : DirectX 7.0 が必要。
  ヘッダー : d3dxmath.h で宣言。
  ライブラリ : d3dx.lib を使用。

参照

D3DXMatrixRotationAxisD3DXMatrixRotationQuaternionD3DXMatrixRotationXD3DXMatrixRotationYD3DXMatrixRotationYawPitchRoll