Platform SDK: DirectX

D3DXMatrixRotationAxis

D3DXMatrixRotationAxis 関数は、任意の軸を回転軸として回転した行列を構築する。

D3DXMATRIX* D3DXMatrixRotationAxis(
  D3DXMATRIX* pOut,
  const D3DXVECTOR3* pV,
  float angle
); 

パラメータ

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

戻り値

指定された軸を回転軸として回転した D3DXMATRIX 構造体へのポインタ。

注意

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

動作環境

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

参照

D3DXMatrixRotationQuaternionD3DXMatrixRotationXD3DXMatrixRotationYD3DXMatrixRotationYawPitchRollD3DXMatrixRotationZ