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.
Object SIQuaternion.Get2(); |
oArray = SIQuaternion.Get2(); |
Array ordered as W, X, Y, Z
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] ); |