Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
Matrix

Package | org.apache.flex.geom
Class | public class Matrix
Inheritance | Matrix Object

Public Properties

| Property | Defined By
--- | --- | ---
|  | a : Number | Matrix
|  | b : Number | Matrix
|  | c : Number | Matrix
|  | d : Number | Matrix
|  | tx : Number | Matrix
|  | ty : Number | Matrix

Public Methods

| Method | Defined By
--- | --- | ---
|  | Matrix(a:Number = 1, b:Number = 0, c:Number = 0, d:Number = 1, tx:Number = 0, ty:Number = 0) | Matrix
|  | clone():Matrix Returns a copy of the Matrix | Matrix
|  | concat(m:Matrix):Matrix Adds the Matrix the current one Returns the matrix so the methods can be chained. | Matrix
|  | copyFrom(source:Matrix):Matrix Copies the values from another Matrix. | Matrix
|  | deltaTransformPoint(point:Point):Point Uses the Matrix to transform the point without the translation values. | Matrix
|  | determinant():Number Calculates the Matrix determinant | Matrix
|  | identity():Matrix Resets the matrix to the default values. | Matrix
|  | invert():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
|  | transformPoint(point:Point):Point 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

a | property

`public var a:Number`

b | property |

`public var b:Number`

c | property |

`public var c:Number`

d | property |

`public var d:Number`

tx | property |

`public var tx:Number`

ty | property |

`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`

Mon Sep 5 2016, 07:19 AM -07:00