SIRotation.SetFromXYZAnglesValues

Description

Sets the Euler angles (in radians).

C# Syntax

SIRotation.SetFromXYZAnglesValues( Double in_dX, Double in_dY, Double in_dZ );

Scripting Syntax

SIRotation.SetFromXYZAnglesValues();

Examples

JScript Example

var oRoot = Application.ActiveProject.ActiveScene.Root;
var oCube = oRoot.AddGeometry("Cube","MeshSurface", "CubeParent");
var oTrans = oCube.Kinematics.Local.Transform;
var oRot = XSIMath.CreateRotation();
oRot.SetFromXYZAnglesValues( 0, XSIMath.DegreesToRadians( 45 ), XSIMath.DegreesToRadians( 45 ) );
oTrans.SetRotation( oRot );		
oCube.Kinematics.Local.Transform = oTrans;

See Also

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