SIRotation.SetFromXYZAngles

説明

この回転の値を、パラメータで渡される X、Y、Z の角(ラジアン)に従って設定します。

C#構文

SIRotation.SetFromXYZAngles( SIVector3 in_pXZYAngles );

スクリプト構文

SIRotation.SetFromXYZAngles( angles );

パラメータ

パラメータ タイプ 説明
angles SIVector3 3D ベクトルに格納された、X、Y、Z の角(ラジアン)

VBScript の例

dim r1, rotAngles

' Create rotation.

set r1 = XSIMath.CreateRotation

' Create 3D vector.

set rotAngles = XSIMath.CreateVector3(1.5, 0.0, 0.0)

r1.SetFromXYZAngles rotAngles

関連項目

SIRotation.GetXYZAngles SIRotation.RotX SIRotation.RotY SIRotation.RotZ SIRotation.XYZAngles