Matrix

Matrix

new Matrix(sx, shy, shx, sy, tx, ty)

Source:

用于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

Source:

rotation

Source:

scaleX

Source:

scaleY

Source:

shx

Source:

shy

Source:

sx

Source:

sy

Source:

tx

Source:

ty

Source:

方法

applyToPoint()

Source:

applyToRectangle()

Source:

clone()

Source:

克隆矩阵

decompose()

Source:

inversed()

Source:

join(separator) → {string}

Source:

将矩阵值连接成字符串

Parameters:
名称 类型 描述
separator string

指定一个字符串来分隔数组中相邻的元素。如果需要,分隔符会被转换为字符串。如果省略,数组元素用逗号(",")分隔。如果分隔符是空字符串,所有元素之间都没有任何字符。

Returns:

包含所有数组元素的字符串。

Type
string

multiply(matrix) → {Matrix}

Source:

与给定矩阵相乘

Parameters:
名称 类型 描述
matrix
Returns:
Type
Matrix

toString()

Source: