/
usr
/
include
/
boost
/
geometry
/
strategies
/
cartesian
/
/usr/include/boost/geometry/strategies/cartesian
mkdir
upload
Name
Size
Mode
Actions
area.hpp
3958
0644
edit
dl
rm
area_surveyor.hpp
1221
0644
edit
dl
rm
azimuth.hpp
1212
0644
edit
dl
rm
box_in_box.hpp
10614
0644
edit
dl
rm
buffer_end_flat.hpp
3757
0644
edit
dl
rm
buffer_end_round.hpp
6084
0644
edit
dl
rm
buffer_join_miter.hpp
4540
0644
edit
dl
rm
buffer_join_round.hpp
6206
0644
edit
dl
rm
buffer_join_round_by_divide.hpp
4659
0644
edit
dl
rm
buffer_point_circle.hpp
4016
0644
edit
dl
rm
buffer_point_square.hpp
3654
0644
edit
dl
rm
buffer_side_straight.hpp
4587
0644
edit
dl
rm
centroid_average.hpp
2880
0644
edit
dl
rm
centroid_bashein_detmer.hpp
8541
0644
edit
dl
rm
centroid_weighted_length.hpp
4855
0644
edit
dl
rm
densify.hpp
3902
0644
edit
dl
rm
disjoint_box_box.hpp
2985
0644
edit
dl
rm
disjoint_segment_box.hpp
8965
0644
edit
dl
rm
distance_projected_point.hpp
9635
0644
edit
dl
rm
distance_projected_point_ax.hpp
9835
0644
edit
dl
rm
distance_pythagoras.hpp
7674
0644
edit
dl
rm
distance_pythagoras_box_box.hpp
8993
0644
edit
dl
rm
distance_pythagoras_point_box.hpp
9230
0644
edit
dl
rm
distance_segment_box.hpp
6893
0644
edit
dl
rm
envelope.hpp
4299
0644
edit
dl
rm
envelope_box.hpp
3479
0644
edit
dl
rm
envelope_multipoint.hpp
1442
0644
edit
dl
rm
envelope_point.hpp
2963
0644
edit
dl
rm
envelope_segment.hpp
2458
0644
edit
dl
rm
expand_box.hpp
1868
0644
edit
dl
rm
expand_point.hpp
3340
0644
edit
dl
rm
expand_segment.hpp
1900
0644
edit
dl
rm
index.hpp
6976
0644
edit
dl
rm
intersection.hpp
30855
0644
edit
dl
rm
io.hpp
1873
0644
edit
dl
rm
line_interpolate.hpp
3772
0644
edit
dl
rm
point_in_box.hpp
8761
0644
edit
dl
rm
point_in_point.hpp
3543
0644
edit
dl
rm
point_in_poly_crossings_multiply.hpp
3593
0644
edit
dl
rm
point_in_poly_franklin.hpp
3464
0644
edit
dl
rm
point_in_poly_winding.hpp
9889
0644
edit
dl
rm
point_order.hpp
1024
0644
edit
dl
rm
side_by_triangle.hpp
9669
0644
edit
dl
rm
turn_in_ring_winding.hpp
7463
0644
edit
dl
rm
Edit:
/usr/include/boost/geometry/strategies/cartesian/envelope.hpp
(4299B)
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK. // This file was modified by Oracle on 2015, 2016, 2018, 2019. // Modifications copyright (c) 2015-2019, Oracle and/or its affiliates. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. // 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_STRATEGIES_CARTESIAN_ENVELOPE_HPP #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_HPP #include <boost/range/begin.hpp> #include <boost/range/end.hpp> #include <boost/geometry/algorithms/detail/envelope/initialize.hpp> #include <boost/geometry/strategies/cartesian/envelope_box.hpp> #include <boost/geometry/strategies/cartesian/envelope_segment.hpp> #include <boost/geometry/strategies/cartesian/expand_box.hpp> #include <boost/geometry/strategies/cartesian/expand_segment.hpp> namespace boost { namespace geometry { namespace strategy { namespace envelope { template <typename CalculationType = void> class cartesian { public: typedef cartesian_tag cs_tag; typedef cartesian_point element_envelope_strategy_type; static inline element_envelope_strategy_type get_element_envelope_strategy() { return element_envelope_strategy_type(); } typedef expand::cartesian_point element_expand_strategy_type; static inline element_expand_strategy_type get_element_expand_strategy() { return element_expand_strategy_type(); } typedef expand::cartesian_box box_expand_strategy_type; static inline box_expand_strategy_type get_box_expand_strategy() { return box_expand_strategy_type(); } // Linestring, Ring, Polygon template <typename Range> static inline typename boost::range_iterator<Range const>::type begin(Range const& range) { return boost::begin(range); } template <typename Range> static inline typename boost::range_iterator<Range const>::type end(Range const& range) { return boost::end(range); } // MultiLinestring, MultiPolygon template <typename Box> struct multi_state { multi_state() : m_initialized(false) {} void apply(Box const& single_box) { if (! m_initialized) { m_box = single_box; m_initialized = true; } else { box_expand_strategy_type::apply(m_box, single_box); } } void result(Box & box) { if (m_initialized) { box = m_box; } else { geometry::detail::envelope::initialize<Box, 0, dimension<Box>::value>::apply(box); } } private: bool m_initialized; Box m_box; }; // Segment template <typename Point1, typename Point2, typename Box> static inline void apply(Point1 const& point1, Point2 const& point2, Box& box) { cartesian_segment<CalculationType>::apply(point1, point2, box); } // Box template <typename BoxIn, typename Box> static inline void apply(BoxIn const& box_in, Box& box) { cartesian_box::apply(box_in, box); } }; #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS namespace services { template <typename Tag, typename CalculationType> struct default_strategy<Tag, cartesian_tag, CalculationType> { typedef strategy::envelope::cartesian<CalculationType> type; }; } // namespace services #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS }} // namespace strategy::envelope }} //namepsace boost::geometry #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_ENVELOPE_HPP
Save
cmd:
run