Fix a small bug in lat computation in CheapRulerSingleton and update
according to latest master branch.
This commit is contained in:
parent
2591f22348
commit
1a2a1164f9
4 changed files with 8 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue