SIRotation.SetFromAxisAngle

説明

この回転を、axis パラメータおよび angle パラメータに従って設定します。

C#構文

SIRotation.SetFromAxisAngle( SIVector3 in_pAxis, Double in_dAngle );

スクリプト構文

SIRotation.SetFromAxisAngle( axis, angle );

パラメータ

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

VBScript の例

dim r1, axis

' Create rotation.

set r1 = XSIMath.CreateRotation

' Create 3D vector.

set axis = XSIMath.CreateVector3(1.0, 0.0, 0.0)

r1.SetFromAxisAngle axis, 1.5

関連項目

SIRotation.GetAxisAngle SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion