Lines Matching refs:matrix
17 function multiplyVec2(matrix, x, y) { argument
18 if (!matrix) return {x, y};
23 x: matrix.dsdx * x + matrix.dsdy * y + matrix.tx,
24 y: matrix.dtdx * x + matrix.dtdy * y + matrix.ty,
29 let matrix = transform;
30 if (transform && transform.matrix) {
31 matrix = transform.matrix;
37 const leftTop = multiplyVec2(matrix, rect.left, rect.top);
38 const rightTop = multiplyVec2(matrix, rect.right, rect.top);
39 const leftBottom = multiplyVec2(matrix, rect.left, rect.bottom);
40 const rightBottom = multiplyVec2(matrix, rect.right, rect.bottom);