refactor: earth_radius moved to cpp file

This commit is contained in:
Mateusz Pusz
2021-02-26 14:25:01 +01:00
parent cdba0cdbc4
commit 0d3740cc87
2 changed files with 7 additions and 3 deletions
+7
View File
@@ -24,6 +24,13 @@
#include <cmath>
#include <numbers>
namespace {
using namespace units::physical::si::unit_constants;
inline constexpr auto earth_radius = 6371 * km;
} // namespace
namespace geographic {
distance spherical_distance(position from, position to)