new Matrix(sx, shy, shx, sy, tx, ty)
用于2D齐次变换的矩阵对象:
| a b 0 |
| c d 0 |
| e f 1 |
pdf从右向左乘矩阵: v' = v x m1 x m2 x ...
Parameters:
名称 | 类型 | 描述 |
---|---|---|
sx |
number | |
shy |
number | |
shx |
number | |
sy |
number | |
tx |
number | |
ty |
number |
成员
isIdentity
rotation
scaleX
scaleY
shx
shy
sx
sy
tx
ty
方法
applyToPoint()
applyToRectangle()
clone()
克隆矩阵
decompose()
inversed()
join(separator) → {string}
将矩阵值连接成字符串
Parameters:
名称 | 类型 | 描述 |
---|---|---|
separator |
string |
指定一个字符串来分隔数组中相邻的元素。如果需要,分隔符会被转换为字符串。如果省略,数组元素用逗号(",")分隔。如果分隔符是空字符串,所有元素之间都没有任何字符。 |
Returns:
包含所有数组元素的字符串。
- Type
- string
multiply(matrix) → {Matrix}
与给定矩阵相乘
Parameters:
名称 | 类型 | 描述 |
---|---|---|
matrix |
Returns:
- Type
- Matrix