Fix a small bug in lat computation in CheapRulerSingleton and update

according to latest master branch.
This commit is contained in:
Phyks (Lucas Verney) 2018-12-11 09:04:13 +01:00
parent 2591f22348
commit 1a2a1164f9
4 changed files with 8 additions and 9 deletions

View file

@ -33,7 +33,7 @@ public final class CheapRulerSingleton {
}
private static double[] calcKxKyFromILat(int ilat) {
double lat = DEG_TO_RAD*ilat*ILATLNG_TO_LATLNG - 90;
double lat = DEG_TO_RAD*(ilat*ILATLNG_TO_LATLNG - 90);
double cos = Math.cos(lat);
double cos2 = 2 * cos * cos - 1;
double cos3 = 2 * cos * cos2 - cos;