17 lines
710 B
JavaScript
17 lines
710 B
JavaScript
shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$sprite_tiling$utils$applyMatrix = function(global, require, module, exports) {
|
|
exports.applyMatrix = function(array, stride, offset, matrix) {
|
|
let index = 0;
|
|
const size = array.length / (stride || 2), a = matrix.a, b = matrix.b, c = matrix.c, d = matrix.d, tx = matrix.tx;
|
|
matrix = matrix.ty;
|
|
for (offset *= stride; index < size;) {
|
|
const x = array[offset], y = array[offset + 1];
|
|
array[offset] = a * x + c * y + tx;
|
|
array[offset + 1] = b * x + d * y + matrix;
|
|
offset += stride;
|
|
index++;
|
|
}
|
|
};
|
|
};
|
|
|
|
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$sprite_tiling$utils$applyMatrix.js.map
|