Packageorg.apache.flex.geom
Classpublic class Matrix
InheritanceMatrix Inheritance Object



Public Properties
 PropertyDefined By
  a : Number
Matrix
  b : Number
Matrix
  c : Number
Matrix
  d : Number
Matrix
  tx : Number
Matrix
  ty : Number
Matrix
Public Methods
 MethodDefined By
  
Matrix(a:Number = 1, b:Number = 0, c:Number = 0, d:Number = 1, tx:Number = 0, ty:Number = 0)
Matrix
  
Returns a copy of the Matrix
Matrix
  
Adds the Matrix the current one Returns the matrix so the methods can be chained.
Matrix
  
Copies the values from another Matrix.
Matrix
  
Uses the Matrix to transform the point without the translation values.
Matrix
  
determinant():Number
Calculates the Matrix determinant
Matrix
  
Resets the matrix to the default values.
Matrix
  
Inverts the Matrix.
Matrix
  
rotate(angle:Number):Matrix
Rotates the Matrix by the specified value.
Matrix
  
scale(x:Number, y:Number):Matrix
Scales the Matrix by the specified amount.
Matrix
  
toString():String
Returns a string representation of the Matrix.
Matrix
  
Uses the Matrix to transform the point including the translation values.
Matrix
  
translate(x:Number, y:Number):Matrix
Moves the Matrix by the specified amount Returns the matrix so the methods can be chained.
Matrix
Property Detail
aproperty
public var a:Number

bproperty 
public var b:Number

cproperty 
public var c:Number

dproperty 
public var d:Number

txproperty 
public var tx:Number

typroperty 
public var ty:Number

Constructor Detail
Matrix()Constructor
public function Matrix(a:Number = 1, b:Number = 0, c:Number = 0, d:Number = 1, tx:Number = 0, ty:Number = 0)



Parameters
a:Number (default = 1)
 
b:Number (default = 0)
 
c:Number (default = 0)
 
d:Number (default = 1)
 
tx:Number (default = 0)
 
ty:Number (default = 0)
Method Detail
clone()method
public function clone():Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Returns a copy of the Matrix

Returns
Matrix
concat()method 
public function concat(m:Matrix):Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Adds the Matrix the current one Returns the matrix so the methods can be chained.

Parameters

m:Matrix

Returns
Matrix
copyFrom()method 
public function copyFrom(source:Matrix):Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Copies the values from another Matrix. Returns the matrix so the methods can be chained.

Parameters

source:Matrix

Returns
Matrix
deltaTransformPoint()method 
public function deltaTransformPoint(point:Point):Point

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Uses the Matrix to transform the point without the translation values. Returns a new Point. The original Point is unchanged.

Parameters

point:Point

Returns
Point
determinant()method 
public function determinant():Number

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Calculates the Matrix determinant

Returns
Number
identity()method 
public function identity():Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Resets the matrix to the default values. Returns the matrix so the methods can be chained.

Returns
Matrix
invert()method 
public function invert():Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Inverts the Matrix. Returns the matrix so the methods can be chained.

Returns
Matrix
rotate()method 
public function rotate(angle:Number):Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Rotates the Matrix by the specified value. Returns the matrix so the methods can be chained.

Parameters

angle:Number

Returns
Matrix
scale()method 
public function scale(x:Number, y:Number):Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Scales the Matrix by the specified amount. Returns the matrix so the methods can be chained.

Parameters

x:Number
 
y:Number

Returns
Matrix
toString()method 
public function toString():String

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Returns a string representation of the Matrix.

Returns
String
transformPoint()method 
public function transformPoint(point:Point):Point

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Uses the Matrix to transform the point including the translation values. Returns a new Point. The original Point is unchanged.

Parameters

point:Point

Returns
Point
translate()method 
public function translate(x:Number, y:Number):Matrix

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7
Runtime Versions : Flash Player 10.2, AIR 2.6

Moves the Matrix by the specified amount Returns the matrix so the methods can be chained.

Parameters

x:Number
 
y:Number

Returns
Matrix