XSIMath.CreateRotation

説明

SIRotation オブジェクトを戻します。この回転の x、Y、および z 値は、配列の作成時または 3 つの値によって設定できます。

C#構文

SIRotation XSIMath.CreateRotation( Object in_dX, Object in_dY, Object in_dZ );

スクリプト構文

oReturn = XSIMath.CreateRotation( [X], [Y], [Z] );

戻り値

SIRotation

パラメータ

パラメータ タイプ 説明
X DoubleまたはArray X のオイラー角の値(ラジアン)またはW、X、Y、z 値を含む配列
Y Double Y のオイラー角の値(ラジアン)
Z Double Z のオイラー角の値(ラジアン)

1. JScript の例

/* Set and display the X, Y and Z values of a rotation

*/

var oRot = XSIMath.CreateRotation (

XSIMath.DegreesToRadians( 70 ),

XSIMath.DegreesToRadians( 40 ),

XSIMath.DegreesToRadians( 45 ));

Application.LogMessage( "X, Y and Z rotation angles values in degrees: " + 

oRot.RotX + "," + oRot.RotY +","+ oRot.RotZ );

//Expected output:

//INFO : X, Y and Z rotation angles values in degrees: 70,40,45//

2. VBScript の例

set oRotation = XSIMath.CreateRotation

Application.LogMessage TypeName(oRotation)