summaryrefslogtreecommitdiff
path: root/geometry/spheres.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'geometry/spheres.cpp')
-rw-r--r--geometry/spheres.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/geometry/spheres.cpp b/geometry/spheres.cpp
index 0657ab8..01c54de 100644
--- a/geometry/spheres.cpp
+++ b/geometry/spheres.cpp
@@ -4,10 +4,10 @@ double gcDist(double pLat, double pLon,
pLat *= PI / 180; pLon *= PI / 180;
qLat *= PI / 180; qLon *= PI / 180;
return radius * acos(cos(pLat) * cos(pLon) *
- cos(qLat) * cos(qLon) +
- cos(pLat) * sin(pLon) *
- cos(qLat) * sin(qLon) +
- sin(pLat) * sin(qLat));
+ cos(qLat) * cos(qLon) +
+ cos(pLat) * sin(pLon) *
+ cos(qLat) * sin(qLon) +
+ sin(pLat) * sin(qLat));
}
// Great Cirlce Distance mit kartesischen Koordinaten.