Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$rendering$renderers$gpu$renderTarget$calculateProjection.js
2026-07-01 22:38:29 -06:00

14 lines
541 B
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gpu$renderTarget$calculateProjection = function(global, require, module, exports) {
exports.calculateProjection = function(pm, x, y, width, height, flipY) {
flipY = flipY ? 1 : -1;
pm.identity();
pm.a = 1 / width * 2;
pm.d = 1 / height * flipY * 2;
pm.tx = -1 - x * pm.a;
pm.ty = -flipY - y * pm.d;
return pm;
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gpu$renderTarget$calculateProjection.js.map