handle pivot for Viewport.rotateMap() and .scaleMap() consistenly

This commit is contained in:
Hannes Janetzek
2014-01-28 05:01:36 +01:00
parent 2525b60f86
commit e300664a28
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -477,8 +477,8 @@ public class Viewport {
double rsin = Math.sin(radians);
double rcos = Math.cos(radians);
float x = (float) (pivotX * rcos + pivotY * -rsin - pivotX);
float y = (float) (pivotX * rsin + pivotY * rcos - pivotY);
float x = (float) (-pivotX * rcos - pivotY * -rsin + pivotX);
float y = (float) (-pivotX * rsin - pivotY * rcos + pivotY);
moveMap(x, y);