forked from mpusz/mp-units
refactor: earth_radius moved to cpp file
This commit is contained in:
@@ -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