Skip to main content

polygons_intersect

Function polygons_intersect 

Source
pub fn polygons_intersect(poly_a: &Polygon, poly_b: &Polygon) -> bool
Expand description

Separating Axis Theorem: do two convex polygons overlap? Panics if either polygon is concave (SAT is only valid for convex polygons).