Skip to main content

polygon2d_intersection

Function polygon2d_intersection 

Source
pub fn polygon2d_intersection(a: &[[f64; 2]], b: &[[f64; 2]]) -> Vec<[f64; 2]>
Expand description

Compute the 2-D intersection of two convex polygons using Sutherland-Hodgman.

Both polygons are assumed to be convex and wound counter-clockwise.