Platform SDK: DirectX

D3DXMatrixRotationQuaternion

D3DXMatrixRotationQuaternion 関数は、クオータニオンから行列を構築する。

D3DXMATRIX* D3DXMatrixRotationQuaternion(
  D3DXMATRIX* pOut,
  const D3DXQUATERNION* pQ
); 

パラメータ

pOut
演算結果である D3DXMATRIX 構造体へのポインタ。
pQ
ソースの D3DXQUATERNION 構造体へのポインタ。

戻り値

指定されたクオータニオンから構築された D3DXMATRIX 構造体へのポインタ。

注意

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

動作環境

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

参照

D3DXMatrixRotationAxisD3DXMatrixRotationXD3DXMatrixRotationYD3DXMatrixRotationYawPitchRollD3DXMatrixRotationZ