SITransformation.SetRotationFromMatrix3

説明

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

スクリプト 構文

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