Returns the Euler angles values (in radians) in an array.
The values in the array are ordered the same as the
SIRotation.GetXYZAnglesValues output parameters.
Note: This method must be used with scripting languages that don't
support arguments passed by reference such as JScript. For more information
on getting output arguments, see About Output Argument Arrays.
Object SIRotation.GetXYZAnglesValues2(); |
oArray = SIRotation.GetXYZAnglesValues2(); |
Array of radian values ordered as X, Y, Z
var r1, axis, angle var r1 = XSIMath.CreateRotation(); var vbArr = new VBArray( r1.GetXYZAnglesValues2() ); var array = vbArr.toArray(); Application.LogMessage( "Angles: " + array[0] +","+ array[1] +","+ array[2] ); |