From ca743293454abb17ddbd383bedd84a27d287c712 Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Tue, 31 Mar 2015 13:22:58 +0300 Subject: [PATCH] [algorithms][disjoint] do not treat poles in a special way: normalization of spherical coordinates takes care of that --- .../detail/disjoint/point_point.hpp | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/disjoint/point_point.hpp b/include/boost/geometry/algorithms/detail/disjoint/point_point.hpp index 56fe9b4ce..2261efd3a 100644 --- a/include/boost/geometry/algorithms/detail/disjoint/point_point.hpp +++ b/include/boost/geometry/algorithms/detail/disjoint/point_point.hpp @@ -52,24 +52,6 @@ namespace detail { namespace disjoint class point_point_on_spheroid { private: - template - static inline bool is_north_pole(CoordinateType const& latitude) - { - static CoordinateType const max_latitude - = math::max_latitude(); - - return math::equals(latitude, max_latitude); - } - - template - static inline bool is_south_pole(CoordinateType const& latitude) - { - static CoordinateType const min_latitude - = math::min_latitude(); - - return math::equals(latitude, min_latitude); - } - template < typename Units, @@ -84,16 +66,6 @@ private: math::normalize_spheroidal_coordinates(lon1, lat1); math::normalize_spheroidal_coordinates(lon2, lat2); - if (is_north_pole(lat1)) - { - return ! is_north_pole(lat2); - } - - if (is_south_pole(lat1)) - { - return ! is_south_pole(lat2); - } - return ! math::equals(lat1, lat2) || ! math::equals(lon1, lon2); }