SITransformation.SetRotationFromMatrix3

説明

この変換の回転部分を、3x3 行列を使用して設定します。

C#構文

SITransformation.SetRotationFromMatrix3( SIMatrix3 in_pRotMat );

スクリプト構文

SITransformation.SetRotationFromMatrix3( in_pRotMat );

パラメータ

パラメータ タイプ 説明
in_pRotMat SIMatrix3 この変換の回転に充てる回転情報を含む 3x3 行列

VBScript の例

' Create transformation.

set oTransformation = XSIMath.CreateTransform

' create 3x3 matrix.

set oMatrix3 = XSIMath.CreateMatrix3

'Get the rotation matrix3 representation

oTransformation.GetRotationMatrix3 oMatrix3

'Modify the matrix

oMatrix3.value(2,1) = 5.0

'Set the rotation from matrix3

oTransformation.SetRotationFromMatrix3 oMatrix3

関連項目

SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion