Create a circular buffer around a point. More...
#include <buffer_point_circle.hpp>
Public Member Functions | |
point_circle (std::size_t count=90) | |
Constructs the strategy. More... | |
template<typename Point , typename OutputRange , typename DistanceStrategy > | |
void | apply (Point const &point, DistanceStrategy const &distance_strategy, OutputRange &output_range) const |
Fills output_range with a circle around point using distance_strategy. More... | |
Create a circular buffer around a point.
This strategy can be used as PointStrategy for the buffer algorithm. It creates a circular buffer around a point. It can be applied for points and multi_points, but also for a linestring (if it is degenerate, so consisting of only one point) and for polygons (if it is degenerate). This strategy is only applicable for Cartesian coordinate systems.
{ [heading Example] [buffer_point_circle] [heading Output] [$img/strategies/buffer_point_circle.png] [heading See also]
|
inlineexplicit |
Constructs the strategy.
count | number of points for the created circle |
|
inline |
Fills output_range with a circle around point using distance_strategy.
References boost::a, boost::geometry::strategy::buffer::buffer_side_left, boost::math::ef::cos(), boost::multiprecision::backends::i, boost::multiprecision::backends::p, boost::math::ef::sin(), and boost::detail::type.