Returns all components of this matrix in an array. The values in
the array are ordered the same as the SIMatrix3.Get output parameters. This is
the layout of the matrix:
| m0 m1 m2 |
| m3 m4 m5 |
| m6 m7 m8 |
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.
oArray = SIMatrix3.Get2(); |
Array ordered as m0, m1, m2, m3, m4, m5, m6, m7, m8.
var m1 = XSIMath.CreateMatrix3(); m1.Set( 4.0, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 2.0 ); var vbArr = new VBArray( m1.Get2() ); var array = vbArr.toArray(); Application.LogMessage( " m00:" + array[0] + " m01:" + array[1] + " m02:" + array[2] + " m10:" + array[3] + " m11:" + array[4] + " m12:" + array[5] + " m20:" + array[6] + " m21:" + array[7] + " m22:" + array[8] ); |