Add euclideanDistance to coordinate_calculation

This commit is contained in:
Patrick Niklaus
2016-02-24 21:26:30 +01:00
parent ef6c62d224
commit ffaf0fc86f
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -19,6 +19,10 @@ const constexpr long double EARTH_RADIUS = 6372797.560856;
namespace coordinate_calculation
{
//! Projects both coordinates and takes the euclidean distance of the projected points
// Does not return meters!
double euclideanDistance(const Coordinate first_coordinate, const Coordinate second_coordinate);
double haversineDistance(const Coordinate first_coordinate, const Coordinate second_coordinate);
double greatCircleDistance(const Coordinate first_coordinate, const Coordinate second_coordinate);