SIRotation.SetFromXYZAngles

Description

Sets this rotation values according to the X, Y and Z angles (in radians) passed in parameter.

C# Syntax

SIRotation.SetFromXYZAngles( SIVector3 in_pXZYAngles );

Scripting Syntax

SIRotation.SetFromXYZAngles( angles );

Parameters

Parameter Type Description
angles SIVector3 X, Y and Z angles (in radians) stored under a 3D vector

Examples

VBScript Example

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

See Also

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