SITransformation.RotX

Introduced

v5.1

Description

Sets or returns the rotation angle (in degrees) around the x axis of this transformation as a Double (floating-point value).

C# Syntax

// get accessor
Double rtn = ISITransformation.RotX;
// set accessor
ISITransformation.RotX = Double;

Examples

JScript Example

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;

See Also

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