1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 11:39:16 +02:00

Fixed broken equations

This commit is contained in:
2019-02-26 22:16:05 +01:00
parent 3ca5616a3c
commit a0697a6ce7
6 changed files with 25 additions and 25 deletions

View File

@ -20,10 +20,10 @@ RectC::RectC(const Coordinates &center, double radius)
double deltaLon = asin(sin(radDist) / cos(radlat));
minLon = radLon - deltaLon;
if (minLon < MIN_LON)
minLon += M_2_PI;
minLon += 2 * M_PI;
maxLon = radLon + deltaLon;
if (maxLon > MAX_LON)
maxLon -= M_2_PI;
maxLon -= 2 * M_PI;
} else {
// a pole is within the distance
minLat = qMax(minLat, MIN_LAT);