diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-06-13 11:54:33 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-13 21:08:11 -0700 |
commit | 7a594e3ec5e66f30a1604d492f3bb1af1259afd7 (patch) | |
tree | b0fb86b70ad06b5386db0518d1d70df07c54bfe3 /qt-ui/globe.cpp | |
parent | 9ec155fad05d53aaac42c7a8b9460b7eb6a0c803 (diff) | |
download | subsurface-7a594e3ec5e66f30a1604d492f3bb1af1259afd7.tar.gz |
Simplify distance calculations
This simplifies the distance calculations and removes a dependency.
This version uses propper math instead of my to simple previous version.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 76d48b7ba..b8e0ec87e 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -1,5 +1,4 @@ #include "globe.h" -#include <QGeoCoordinate> #ifndef NO_MARBLE #include "mainwindow.h" #include "helpers.h" @@ -393,10 +392,3 @@ void GlobeGPS::reload() { } #endif - -extern "C" double getDistance(int lat1, int lon1, int lat2, int lon2) -{ - QGeoCoordinate c1(lat1 / 1000000.0, lon1 / 1000000.0); - QGeoCoordinate c2(lat2 / 1000000.0, lon2 / 1000000.0); - return c1.distanceTo(c2); -} |