mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
Shift first - rotate later
This commit is contained in:
parent
a6edd8e5fd
commit
38e708c0ed
1 changed files with 2 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ window.UISubmap = (function () {
|
||||||
|
|
||||||
let projection, inverse;
|
let projection, inverse;
|
||||||
if (angle || shiftX || shiftY) {
|
if (angle || shiftX || shiftY) {
|
||||||
projection = app(rot(angle), shift(shiftX, shiftY));
|
projection = app(shift(shiftX, shiftY), rot(angle));
|
||||||
inverse = app(shift(-shiftX, -shiftY), rot(-angle));
|
inverse = app(rot(-angle), shift(-shiftX, -shiftY));
|
||||||
} else {
|
} else {
|
||||||
projection = (x, y) => [x, y];
|
projection = (x, y) => [x, y];
|
||||||
inverse = (x, y) => [x, y];
|
inverse = (x, y) => [x, y];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue