diff options
Diffstat (limited to 'boost/geometry/util/normalize_spheroidal_coordinates.hpp')
-rw-r--r-- | boost/geometry/util/normalize_spheroidal_coordinates.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/boost/geometry/util/normalize_spheroidal_coordinates.hpp b/boost/geometry/util/normalize_spheroidal_coordinates.hpp index e595f6c2c0..074acc8a28 100644 --- a/boost/geometry/util/normalize_spheroidal_coordinates.hpp +++ b/boost/geometry/util/normalize_spheroidal_coordinates.hpp @@ -2,7 +2,7 @@ // Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. -// Copyright (c) 2015-2020, Oracle and/or its affiliates. +// Copyright (c) 2015-2022, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -22,7 +22,7 @@ namespace boost { namespace geometry { -namespace math +namespace math { #ifndef DOXYGEN_NO_DETAIL @@ -225,14 +225,14 @@ protected: { return math::mod(value + constants::half_period(), constants::period()) - - constants::half_period(); + - constants::half_period(); } static inline CoordinateType normalize_down(CoordinateType const& value) { return math::mod(value - constants::half_period(), constants::period()) - + constants::half_period(); + + constants::half_period(); } public: @@ -308,7 +308,7 @@ public: BOOST_GEOMETRY_ASSERT(! math::larger(latitude, constants::max_latitude())); #endif // BOOST_GEOMETRY_NORMALIZE_LATITUDE - BOOST_GEOMETRY_ASSERT(math::smaller(constants::min_longitude(), longitude)); + BOOST_GEOMETRY_ASSERT(! math::larger_or_equals(constants::min_longitude(), longitude)); BOOST_GEOMETRY_ASSERT(! math::larger(longitude, constants::max_longitude())); } }; @@ -495,7 +495,7 @@ inline CoordinateType longitude_interval_distance_signed(CoordinateType const& l dist_a12 = -dist_a12; dist_a1b = -dist_a1b; } - + return dist_a1b < c0 ? dist_a1b : dist_a1b > dist_a12 ? dist_a1b - dist_a12 : c0; |