new Matrix(a, b, c, d, e, f)
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 |
---|---|---|
a |
number | |
b |
number | |
c |
number | |
d |
number | |
e |
number | |
f |
number |
Members
isIdentity
rotation
scaleX
scaleY
shx
shy
sx
sy
tx
ty
Methods
applyToPoint()
applyToRectangle()
clone()
Clone the Matrix
decompose()
inversed()
join(separator) → {string}
Multiply the matrix with given Matrix
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