Skip to main content

buffer_point

Function buffer_point 

Source
pub fn buffer_point(
    center: &Point,
    radius: f64,
    options: &BufferOptions,
) -> Result<Polygon>
Expand description

Generates a circular buffer around a point

§Arguments

  • center - The center point
  • radius - Buffer radius (must be positive)
  • options - Buffer options controlling segment count and other parameters

§Errors

Returns error if radius is negative or non-finite