refactor: earth_radius moved to cpp file
This commit is contained in:
1 parent
cdba0cdbc4
commit
0d3740cc87
2 files changed
+7
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user