SIRotation.GetAxisAngle

説明

この回転から軸と角を抽出します。

注: このメソッドでは output arguments が使用されます。C#および他のスクリプト言語(JScript、PerlScript など)では、引数の参照渡しは使用できません。ただし、C#、JScript、および PerlScript で使用しても安全な、このメソッドの代替バージョン SIRotation.GetAxisAngle2 が用意されています。

C#構文

SIRotation.GetAxisAngle( SIVector3 io_pAxis, Object& io_pvarAngle );

スクリプト構文

SIRotation.GetAxisAngle( axis, angle );

パラメータ

パラメータ タイプ 説明
axis SIVector3 回転の軸
angle Float ポイント値 回転の角(ラジアン)

VBScript の例

dim r1, axis

' Create rotation.

set r1 = XSIMath.CreateRotation

' Create 3D vector.

set axis = XSIMath.CreateVector3

'Do something on the roation

r1.GetAxisAngle axis, angle

関連項目

SIRotation.SetFromAxisAngle SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion SIRotation.GetAxisAngle2