refactor: earth_radius moved to cpp file

This commit is contained in:
Mateusz Pusz committed 2021-02-26 14:25:01 +01:00
1 parent cdba0cdbc4
commit 0d3740cc87
2 files changed
+7 -3

No files matched your search

+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)