/usr/include/boost/geometry/algorithms/detail/buffer
NameSizeModeActions
buffered_piece_collection.hpp438810644editdlrm
buffered_ring.hpp65740644editdlrm
buffer_box.hpp20050644editdlrm
buffer_inserter.hpp357750644editdlrm
buffer_policies.hpp82860644editdlrm
get_piece_turns.hpp121560644editdlrm
line_line_intersection.hpp17690644editdlrm
piece_border.hpp183480644editdlrm
turn_in_original_visitor.hpp85100644editdlrm
turn_in_piece_visitor.hpp69630644editdlrm
Edit: /usr/include/boost/geometry/algorithms/detail/buffer/buffer_box.hpp (2005B)
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2018-2019 Barend Gehrels, Amsterdam, the Netherlands. // 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_ALGORITHMS_DETAIL_BUFFER_BUFFER_BOX_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_BUFFER_BUFFER_BOX_HPP #include #include #include #include namespace boost { namespace geometry { #ifndef DOXYGEN_NO_DETAIL namespace detail { namespace buffer { template struct box_loop { typedef typename coordinate_type::type coordinate_type; static inline void apply(BoxIn const& box_in, T const& distance, BoxOut& box_out) { coordinate_type d = distance; set(box_out, get(box_in) + d); box_loop::apply(box_in, distance, box_out); } }; template struct box_loop { static inline void apply(BoxIn const&, T const&, BoxOut&) {} }; // Extends a box with the same amount in all directions template inline void buffer_box(BoxIn const& box_in, T const& distance, BoxOut& box_out) { assert_dimension_equal(); static const std::size_t N = dimension::value; box_loop::apply(box_in, -distance, box_out); box_loop::apply(box_in, distance, box_out); } }} // namespace detail::buffer #endif // DOXYGEN_NO_DETAIL }} // namespace boost::geometry #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_BUFFER_BUFFER_BOX_HPP