SITransformation.RotX

導入

v5.1

詳細

この変換の x軸を基準とした回転角度を Double(浮動小数点値)として設定したり、戻したりします。

C#構文

// get accessor

Double rtn = ISITransformation.RotX;

// set accessor

ISITransformation.RotX = Double;

JScript の例

var oRoot = Application.ActiveProject.ActiveScene.Root;

var oCube = oRoot.AddGeometry("Cube","MeshSurface");

oTrans = oCube.Kinematics.Local.Transform

//Change the rotation around x axe (The angle is in degree)

oTrans.RotX = 45;

oCube.Kinematics.Local.Transform = oTrans;

関連項目

SITransformation.RotY SITransformation.RotZ SITransformation.SetRotationFromXYZAngles SITransformation.GetRotationXYZAngles