User Guide
Matrix (flash.geom.Matrix) 777
In matrix notation the identity matrix looks like this:
Availability: ActionScript 1.0; Flash Player 8
Parameters
a:Number [optional] - The value in the first row and first column of the new Matrix object.
b:Number [optional] - The value in the first row and second column of the new Matrix object.
c:Number [optional] - The value in the second row and first column of the new Matrix object.
d:Number [optional] - The value in the second row and second column of the new Matrix
object.
tx:Number [optional] - The value in the third row and first column of the new Matrix object.
ty:Number [optional] - The value in the third row and second column of the new Matrix
object.
Example
The following example creates
matrix_1 by sending no parameters to the Matrix constructor
and
matrix_2 by sending parameters to it. The Matrix object matrix_1, which is created
with no parameters, is an identity Matrix with the values (a=1, b=0, c=0, d=1, tx=0, ty=0).
import flash.geom.Matrix;
var matrix_1:Matrix = new Matrix();
trace(matrix_1); // (a=1, b=0, c=0, d=1, tx=0, ty=0)
var matrix_2:Matrix = new Matrix(1, 2, 3, 4, 5, 6);
trace(matrix_2); // (a=1, b=2, c=3, d=4, tx=5, ty=6)
rotate (Matrix.rotate method)
public rotate(angle:Number) : Void
Sets the values in the current matrix so that the matrix can be used to apply a rotation
transformation.