parry3d::transformation

Function convex_polygons_intersection

source
pub fn convex_polygons_intersection(
    poly1: &[Point2<f32>],
    poly2: &[Point2<f32>],
    out: impl FnMut(Option<PolylinePointLocation>, Option<PolylinePointLocation>),
)
Expand description

Computes the intersection of two convex polygons.

The resulting polygon is output vertex-by-vertex to the out closure. This is the same as convex_polygons_intersection_with_tolerances with the tolerances set to their default values.