Let the buffer create flat ends. More...
#include <buffer_end_flat.hpp>
Public Member Functions | |
template<typename Point , typename RangeOut , typename DistanceStrategy > | |
void | apply (Point const &penultimate_point, Point const &perp_left_point, Point const &ultimate_point, Point const &perp_right_point, buffer_side_selector side, DistanceStrategy const &distance, RangeOut &range_out) const |
Fills output_range with a flat end. More... | |
Static Public Member Functions | |
template<typename NumericType > | |
static NumericType | max_distance (NumericType const &distance) |
static piece_type | get_piece_type () |
Returns the piece_type (flat end) More... | |
Let the buffer create flat ends.
This strategy can be used as EndStrategy for the buffer algorithm. It creates a flat end for each linestring-end. It can be applied for (multi)linestrings. Also it is applicable for spikes in (multi)polygons. This strategy is only applicable for Cartesian coordinate systems.
{ [heading Example] [buffer_end_flat] [heading Output] [$img/strategies/buffer_end_flat.png] [heading See also]
|
inline |
Fills output_range with a flat end.
References boost::geometry::strategy::buffer::buffer_side_left, and boost::geometry::strategy::buffer::buffer_side_right.
|
inlinestatic |
Returns the piece_type (flat end)
References boost::geometry::strategy::buffer::buffered_flat_end.
|
inlinestatic |
References boost::distance().