/usr/include/boost/geometry/algorithms/detail/envelope
NameSizeModeActions
areal.hpp23790644editdlrm
box.hpp15590644editdlrm
implementation.hpp17350644editdlrm
initialize.hpp23400644editdlrm
interface.hpp67200644editdlrm
intersects_antimeridian.hpp24370644editdlrm
linear.hpp18210644editdlrm
multipoint.hpp14180644editdlrm
point.hpp18360644editdlrm
range.hpp40850644editdlrm
range_of_boxes.hpp116320644editdlrm
segment.hpp30300644editdlrm
transform_units.hpp29470644editdlrm
Edit: /usr/include/boost/geometry/algorithms/detail/envelope/intersects_antimeridian.hpp (2437B)
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2015, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_INTERSECTS_ANTIMERIDIAN_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_INTERSECTS_ANTIMERIDIAN_HPP #include #include #include #include namespace boost { namespace geometry { namespace detail { namespace envelope { struct intersects_antimeridian { template static inline bool apply(CoordinateType const& lon1, CoordinateType const& lat1, CoordinateType const& lon2, CoordinateType const& lat2) { typedef math::detail::constants_on_spheroid < CoordinateType, Units > constants; return math::equals(math::abs(lat1), constants::max_latitude()) || math::equals(math::abs(lat2), constants::max_latitude()) || math::larger(math::abs(lon1 - lon2), constants::half_period()); } template static inline bool apply(Segment const& segment) { return apply(detail::indexed_point_view(segment), detail::indexed_point_view(segment)); } template static inline bool apply(Point const& p1, Point const& p2) { Point p1_normalized = detail::return_normalized(p1); Point p2_normalized = detail::return_normalized(p2); return apply < typename coordinate_system::type::units >(geometry::get<0>(p1_normalized), geometry::get<1>(p1_normalized), geometry::get<0>(p2_normalized), geometry::get<1>(p2_normalized)); } }; }} // namespace detail::envelope }} // namespace boost::geometry #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_INTERSECTS_ANTIMERIDIAN_HPP