Skip to main content

polygon_offset

Function polygon_offset 

Source
pub fn polygon_offset(poly: &[Point2], distance: f64) -> Vec<Point2>
Expand description

Offset a simple polygon by distance.

Positive distance = outward (dilation), negative = inward (erosion). Uses edge normal offsetting with miter joins.