Create a squared form buffer around a point. More...
#include <buffer_point_square.hpp>
Public Member Functions | |
template<typename Point , typename DistanceStrategy , typename OutputRange > | |
void | apply (Point const &point, DistanceStrategy const &distance_strategy, OutputRange &output_range) const |
Fills output_range with a square around point using distance_strategy. More... | |
Create a squared form buffer around a point.
This strategy can be used as PointStrategy for the buffer algorithm. It creates a square from each point, where the point lies in the center. 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_square] [heading Output] [$img/strategies/buffer_point_square.png] [heading See also]
|
inline |
Fills output_range with a square around point using distance_strategy.
References boost::geometry::strategy::buffer::buffer_side_left.