Matrix
Description
2D Affine Transform.
Matrix represents 2D affine transforms.
API overview
Constructor
Matrix
(
_a: Number
= 1.0
,
_b: Number
= 0.0
,
_c: Number
= 0.0
,
_d: Number
= 1.0
,
_tx: Number
= 0.0
,
_ty: Number
= 0.0
)
Functions
Public functions
| concat ( m: Matrix ): Void |
native Concatenate this matrix with another one |
| copyFrom ( other: Matrix ): Void |
native Make this matrix match another matrix |
| deltaTransformCoord ( x: Number , y: Number ): Point |
native Same as transformCoord, but the translation tx/ty of the matrix are not applied |
| determinant (): Number |
native Calculate the determinant of this matrix |
| identity (): Void |
native Reset this matrix to be an identity transformation |
| invert (): Void |
native Invert this matrix |
| rotate ( angle: Number ): Void |
native Apply a rotation transform to this matrix |
| scale ( sx: Number , sy: Number ): Void |
native Append a scale transformation to this matrix |
| setTo ( _a: Number , _b: Number , _c: Number , _d: Number , _tx: Number , _ty: Number ): Void |
native Utility to set the values of the matrix |
| skew ( xSkew: Number , ySkew: Number ): Void |
native Append a skew transform to this matrix |
| transformCoord ( x: Number , y: Number ): Point |
native Transform a coordinate by this matrix, returning the result in a Point |
| translate ( dx: Number , dy: Number ): Void |
native Apply a translation transform to this matrix |
Constructor
Attributes
Constants
Functions
copyFrom ( other: Matrix ): Void
native
Make this matrix match another matrix.
Parameters
| other: Matrix | Matrix to match. |
deltaTransformCoord ( x: Number , y: Number ): Point
native
Same as transformCoord, but the translation tx/ty of the matrix are not applied.
Parameters
| x: Number | X coordinate to transform. |
| y: Number | Y coordinate to transform. |
Returns
| Point | A Point containing the transformed point (x, y). |
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
rotate ( angle: Number ): Void
native
Apply a rotation transform to this matrix.
Parameters
| angle: Number |
scale ( sx: Number , sy: Number ): Void
native
Append a scale transformation to this matrix.
Parameters
| sx: Number | |
| sy: Number |
setTo ( _a: Number , _b: Number , _c: Number , _d: Number , _tx: Number , _ty: Number ): Void
native
Utility to set the values of the matrix.
Parameters
| _a: Number | |
| _b: Number | |
| _c: Number | |
| _d: Number | |
| _tx: Number | |
| _ty: Number |
skew ( xSkew: Number , ySkew: Number ): Void
native
Append a skew transform to this matrix.
Parameters
| xSkew: Number | |
| ySkew: Number |
toString
(): String
Inherited from Object
native
Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().
Returns
| String | String that described the Object. |