Skip to content

Matrix2D

何波 edited this page Feb 22, 2019 · 7 revisions

append(a, b, c, d, tx, ty)

将指定的矩阵属性附加到此矩阵,这相当于乘以(此矩阵)*(指定矩阵)

prepend(a, b, c, d, tx, ty)

Prepends the specified matrix properties to this matrix.这相当于乘以(指定矩阵)*(此矩阵)

appendMatrix(matrix) 与append一样

p.appendMatrix = function(matrix) {
    return this.append(matrix.a, matrix.b, matrix.c, matrix.d, matrix.tx, matrix.ty);
};

prependMatrix(matrix) 与prepend一样

p.prependMatrix = function(matrix) {
    return this.prepend(matrix.a, matrix.b, matrix.c, matrix.d, matrix.tx, matrix.ty);
};

Clone this wiki locally