mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 20:41:23 +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;
|
||||
if (angle || shiftX || shiftY) {
|
||||
projection = app(rot(angle), shift(shiftX, shiftY));
|
||||
inverse = app(shift(-shiftX, -shiftY), rot(-angle));
|
||||
projection = app(shift(shiftX, shiftY), rot(angle));
|
||||
inverse = app(rot(-angle), shift(-shiftX, -shiftY));
|
||||
} else {
|
||||
projection = (x, y) => [x, y];
|
||||
inverse = (x, y) => [x, y];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue