/usr/include/boost/geometry/strategies/cartesian
NameSizeModeActions
area.hpp39580644editdlrm
area_surveyor.hpp12210644editdlrm
azimuth.hpp12120644editdlrm
box_in_box.hpp106140644editdlrm
buffer_end_flat.hpp37570644editdlrm
buffer_end_round.hpp60840644editdlrm
buffer_join_miter.hpp45400644editdlrm
buffer_join_round.hpp62060644editdlrm
buffer_join_round_by_divide.hpp46590644editdlrm
buffer_point_circle.hpp40160644editdlrm
buffer_point_square.hpp36540644editdlrm
buffer_side_straight.hpp45870644editdlrm
centroid_average.hpp28800644editdlrm
centroid_bashein_detmer.hpp85410644editdlrm
centroid_weighted_length.hpp48550644editdlrm
densify.hpp39020644editdlrm
disjoint_box_box.hpp29850644editdlrm
disjoint_segment_box.hpp89650644editdlrm
distance_projected_point.hpp96350644editdlrm
distance_projected_point_ax.hpp98350644editdlrm
distance_pythagoras.hpp76740644editdlrm
distance_pythagoras_box_box.hpp89930644editdlrm
distance_pythagoras_point_box.hpp92300644editdlrm
distance_segment_box.hpp68930644editdlrm
envelope.hpp42990644editdlrm
envelope_box.hpp34790644editdlrm
envelope_multipoint.hpp14420644editdlrm
envelope_point.hpp29630644editdlrm
envelope_segment.hpp24580644editdlrm
expand_box.hpp18680644editdlrm
expand_point.hpp33400644editdlrm
expand_segment.hpp19000644editdlrm
index.hpp69760644editdlrm
intersection.hpp308550644editdlrm
io.hpp18730644editdlrm
line_interpolate.hpp37720644editdlrm
point_in_box.hpp87610644editdlrm
point_in_point.hpp35430644editdlrm
point_in_poly_crossings_multiply.hpp35930644editdlrm
point_in_poly_franklin.hpp34640644editdlrm
point_in_poly_winding.hpp98890644editdlrm
point_order.hpp10240644editdlrm
side_by_triangle.hpp96690644editdlrm
turn_in_ring_winding.hpp74630644editdlrm
Edit: /usr/include/boost/geometry/strategies/cartesian/distance_segment_box.hpp (6893B)
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2018-2019 Oracle and/or its affiliates. // Contributed and/or modified by Vissarion Fisikopoulos, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Use, modification and distribution is subject to 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_STRATEGIES_CARTESIAN_DISTANCE_SEGMENT_BOX_HPP #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_DISTANCE_SEGMENT_BOX_HPP #include #include #include #include #include #include namespace boost { namespace geometry { namespace strategy { namespace distance { template < typename CalculationType = void, typename Strategy = pythagoras > struct cartesian_segment_box { template struct calculation_type : promote_floating_point < typename strategy::distance::services::return_type < Strategy, PointOfSegment, PointOfBox >::type > {}; typedef cartesian_tag cs_tag; // point-point strategy getters struct distance_pp_strategy { typedef Strategy type; }; inline typename distance_pp_strategy::type get_distance_pp_strategy() const { return typename distance_pp_strategy::type(); } // point-segment strategy getters struct distance_ps_strategy { typedef projected_point type; }; inline typename distance_ps_strategy::type get_distance_ps_strategy() const { return typename distance_ps_strategy::type(); } struct distance_pb_strategy { typedef pythagoras_point_box type; }; inline typename distance_pb_strategy::type get_distance_pb_strategy() const { return typename distance_pb_strategy::type(); } typedef side::side_by_triangle side_strategy_type; static inline side_strategy_type get_side_strategy() { return side_strategy_type(); } typedef within::cartesian_point_point equals_point_point_strategy_type; static inline equals_point_point_strategy_type get_equals_point_point_strategy() { return equals_point_point_strategy_type(); } template inline ReturnType segment_below_of_box(SegmentPoint const& p0, SegmentPoint const& p1, BoxPoint const&, BoxPoint const&, BoxPoint const&, BoxPoint const& bottom_right) const { return geometry::detail::distance::segment_to_box_2D < ReturnType, SegmentPoint, BoxPoint, cartesian_segment_box >::template call_above_of_box < typename LessEqual::other >(p1, p0, bottom_right, *this); } template static void mirror(SPoint&, SPoint&, BPoint&, BPoint&, BPoint&, BPoint&) {} }; #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS namespace services { template struct tag > { typedef strategy_tag_distance_segment_box type; }; template struct return_type, PS, PB> : cartesian_segment_box::template calculation_type {}; template struct comparable_type > { // Define a cartesian_segment_box strategy with its underlying point-point // strategy being comparable typedef cartesian_segment_box < CalculationType, typename comparable_type::type > type; }; template struct get_comparable > { typedef typename comparable_type < cartesian_segment_box >::type comparable_type; public : static inline comparable_type apply(cartesian_segment_box const& ) { return comparable_type(); } }; template struct result_from_distance, PS, PB> { private : typedef typename return_type< cartesian_segment_box < CalculationType, Strategy >, PS, PB >::type return_type; public : template static inline return_type apply(cartesian_segment_box const& , T const& value) { Strategy s; return result_from_distance::apply(s, value); } }; template struct default_strategy < segment_tag, box_tag, Segment, Box, cartesian_tag, cartesian_tag > { typedef cartesian_segment_box<> type; }; template struct default_strategy < box_tag, segment_tag, Box, Segment, cartesian_tag, cartesian_tag > { typedef typename default_strategy < segment_tag, box_tag, Segment, Box, cartesian_tag, cartesian_tag >::type type; }; } #endif }} // namespace strategy::distance }} // namespace boost::geometry #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_DISTANCE_SEGMENT_BOX_HPP