/
usr
/
include
/
boost
/
geometry
/
strategies
/
/usr/include/boost/geometry/strategies
mkdir
upload
Name
Size
Mode
Actions
agnostic/
-
0755
rm
cartesian/
-
0755
rm
concepts/
-
0755
rm
geographic/
-
0755
rm
spherical/
-
0755
rm
transform/
-
0755
rm
area.hpp
2031
0644
edit
dl
rm
area_result.hpp
3205
0644
edit
dl
rm
azimuth.hpp
1203
0644
edit
dl
rm
buffer.hpp
2425
0644
edit
dl
rm
centroid.hpp
1660
0644
edit
dl
rm
comparable_distance_result.hpp
5339
0644
edit
dl
rm
compare.hpp
5188
0644
edit
dl
rm
convex_hull.hpp
1564
0644
edit
dl
rm
covered_by.hpp
3486
0644
edit
dl
rm
default_area_result.hpp
1287
0644
edit
dl
rm
default_comparable_distance_result.hpp
1552
0644
edit
dl
rm
default_distance_result.hpp
1475
0644
edit
dl
rm
default_length_result.hpp
2493
0644
edit
dl
rm
default_strategy.hpp
1270
0644
edit
dl
rm
densify.hpp
798
0644
edit
dl
rm
disjoint.hpp
2644
0644
edit
dl
rm
distance.hpp
2921
0644
edit
dl
rm
distance_result.hpp
6443
0644
edit
dl
rm
envelope.hpp
1257
0644
edit
dl
rm
expand.hpp
1128
0644
edit
dl
rm
index.hpp
1574
0644
edit
dl
rm
intersection.hpp
1222
0644
edit
dl
rm
intersection_result.hpp
1995
0644
edit
dl
rm
intersection_strategies.hpp
3106
0644
edit
dl
rm
io.hpp
806
0644
edit
dl
rm
line_interpolate.hpp
850
0644
edit
dl
rm
normalize.hpp
8399
0644
edit
dl
rm
point_order.hpp
862
0644
edit
dl
rm
relate.hpp
4656
0644
edit
dl
rm
side.hpp
1585
0644
edit
dl
rm
side_info.hpp
4511
0644
edit
dl
rm
strategies.hpp
8628
0644
edit
dl
rm
strategy_transform.hpp
16469
0644
edit
dl
rm
tags.hpp
1655
0644
edit
dl
rm
transform.hpp
1859
0644
edit
dl
rm
within.hpp
3457
0644
edit
dl
rm
Edit:
/usr/include/boost/geometry/strategies/buffer.hpp
(2425B)
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2012-2014 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_STRATEGIES_CARTESIAN_BUFFER_HPP #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_BUFFER_HPP namespace boost { namespace geometry { namespace strategy { namespace buffer { /* A Buffer-join strategy gets 4 input points. On the two consecutive segments s1 and s2 (joining at vertex v): The lines from parallel at s1, s2 (at buffer-distance) end/start in two points perpendicular to the segments: p1 and p2. These parallel lines interesct in point ip (s2) | | ^ | (p2) |(v) * +----<--- (s1) x(ip) *(p1) So, in clockwise order: v : vertex point p1: perpendicular on left side of segment1<1> (perp1) ip: intersection point p2: perpendicular on left side of segment2<0> (perp2) */ /*! \brief Enumerates options for side of buffer (left/right w.r.t. directed segment) \ingroup enum \details Around a linestring, a buffer can be defined left or right. Around a polygon, assumed clockwise internally, a buffer is either on the left side (inflates the polygon), or on the right side (deflates the polygon) */ enum buffer_side_selector { buffer_side_left, buffer_side_right }; /*! \brief Enumerates types of pieces (parts of buffer) around geometries \ingroup enum */ enum piece_type { buffered_segment, buffered_join, buffered_round_end, buffered_flat_end, buffered_point, buffered_concave, // always on the inside piece_type_unknown }; /*! \brief Enumerates types of joins \ingroup enum */ enum join_selector { join_convex, join_concave, join_continue, // collinear, next segment touches previous segment join_spike // collinear, with overlap, next segment goes back }; /*! \brief Enumerates types of result codes from buffer strategies \ingroup enum */ enum result_code { result_normal, result_error_numerical, result_no_output }; }} // namespace strategy::buffer }} // namespace boost::geometry #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_BUFFER_HPP
Save
cmd:
run