Define compile-time constants for coordinate calculation only once
Closes #1327.
This commit is contained in:
committed by
Patrick Niklaus
parent
f46706843b
commit
466251287f
@@ -9,6 +9,11 @@ namespace osrm
|
||||
namespace util
|
||||
{
|
||||
|
||||
const constexpr long double RAD = 0.017453292519943295769236907684886;
|
||||
// earth radius varies between 6,356.750-6,378.135 km (3,949.901-3,963.189mi)
|
||||
// The IUGG value for the equatorial radius is 6378.137 km (3963.19 miles)
|
||||
const constexpr long double EARTH_RADIUS = 6372797.560856;
|
||||
|
||||
struct FixedPointCoordinate;
|
||||
|
||||
namespace coordinate_calculation
|
||||
|
||||
Reference in New Issue
Block a user