-
clear()
-
Clears the list of all transformations.
Returns:
The tranformation matrix
-
Type
-
CoreControls.Math.Matrix
-
getAt(index)
-
Gets the transformation at a particular index.
Parameters:
Name |
Type |
Description |
index |
number
|
A valid index |
Returns:
A transformation matrix
-
Type
-
CoreControls.Math.Matrix
-
-
Gets the final transformation by multiplying the matrices in the list.
Returns:
The tranformation matrix
-
Type
-
CoreControls.Math.Matrix
-
push(transform)
-
Pushes a transformation matrix into the list.
Parameters:
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder
-
scale(x, y)
-
Creates a scale transform and adds it to the list.
Parameters:
Name |
Type |
Description |
x |
number
|
The amount to scale by horizontally |
y |
number
|
The amount to scale by vertically |
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder
-
setAt(index, transform)
-
Sets the transformation matrix at a particular index.
Parameters:
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder
-
skew(x, y)
-
Creates a scale transform and adds it to the list.
Parameters:
Name |
Type |
Description |
x |
number
|
The amount to scale by horizontally |
y |
number
|
The amount to scale by vertically |
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder
-
skew(angle [, inRadians])
-
Creates a rotation transform and adds it to the list.
Parameters:
Name |
Type |
Argument |
Default |
Description |
angle |
number
|
|
|
The amount to rotate by |
inRadians |
boolean
|
<optional>
|
false
|
Whether the amount is in radians. Default: false |
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder
-
translate(x, y)
-
Creates a translation transform and adds it to the list.
Parameters:
Name |
Type |
Description |
x |
number
|
The amount to translate by horizontally |
y |
number
|
The amount to translate by vertically |
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder
-
translateTo(sx, sy, dx, dy)
-
Creates a translation transform from a source to a destination and adds it to the list.
Parameters:
Name |
Type |
Description |
sx |
number
|
The source X value |
sy |
number
|
The source Y value |
dx |
number
|
The destination X value |
dy |
number
|
The destination Y value |
Returns:
This instance
-
Type
-
CoreControls.Math.TransformationBuilder