diff --git a/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp b/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp index e6d325698..a1203ef83 100644 --- a/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp +++ b/include/boost/geometry/util/normalize_spheroidal_coordinates.hpp @@ -112,14 +112,14 @@ protected: static inline CoordinateType normalize_up(CoordinateType const& value) { return - math::fmod(value + constants::half_period(), constants::period()) + math::mod(value + constants::half_period(), constants::period()) - constants::half_period(); } static inline CoordinateType normalize_down(CoordinateType const& value) { return - math::fmod(value - constants::half_period(), constants::period()) + math::mod(value - constants::half_period(), constants::period()) + constants::half_period(); }