pub fn buffer_point(point: &Point, distance: f64, resolution: usize) -> PolygonExpand description
This function returns the buffered n-gon of the given point.
§Arguments
point:Pointto buffer.distance: determines the distance from the original point to each edge of the resulting n-gon.resolution: how many sides the resulting polygon will have (n of n-gon).
§Example
use geo_buf::buffer_point;
use geo::{Point, Polygon, HasDimensions};
let p1 = Point::new(0.,0.);
let buffered = buffer_point(&p1, 1., 12);
let neg_empty = buffer_point(&p1, -1., 12);
assert!(neg_empty.is_empty())