new Matrix(sx, shy, shx, sy, tx, ty)
A matrix object for 2D homogenous transformations:
| a b 0 |
| c d 0 |
| e f 1 |
pdf multiplies matrices righthand: v' = v x m1 x m2 x ...
Parameters:
Name | Type | Description |
---|---|---|
sx |
number | |
shy |
number | |
shx |
number | |
sy |
number | |
tx |
number | |
ty |
number |
Members
isIdentity
rotation
scaleX
scaleY
shx
shy
sx
sy
tx
ty
Methods
applyToPoint()
applyToRectangle()
clone()
Clone the Matrix
decompose()
inversed()
join(separator) → {string}
Join the Matrix Values to a String
Parameters:
Name | Type | Description |
---|---|---|
separator |
string | Specifies a string to separate each pair of adjacent elements of the array. The separator is converted to a string if necessary. If omitted, the array elements are separated with a comma (","). If separator is an empty string, all elements are joined without any characters in between them. |
Returns:
A string with all array elements joined.
- Type
- string
multiply(matrix) → {Matrix}
Multiply the matrix with given Matrix
Parameters:
Name | Type | Description |
---|---|---|
matrix |
Returns:
- Type
- Matrix