Get2 (SIQuaternion)
Description
Returns the W, X, Y and Z values of this quaternion in an array. The values in the array are ordered the same as the SIQuaternion.Get 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.
C# Syntax
Object SIQuaternion.Get2();
Return Value
Array ordered as W, X, Y, Z
Examples
JScript Example
var q, array q = XSIMath.CreateQuaternion(); var vbArr = new VBArray( q.Get2() ); var array = vbArr.toArray(); Application.LogMessage( "w:" + array[0] + " x:" + array[1] + " y:" + array[2] + " z:" + array[3] );
See Also
SOFTIMAGE|XSI v6.01