Skip to main content

subtract_all

Function subtract_all 

Source
fn subtract_all(
    rect: Box2D<f32, LayoutPixel>,
    others: &[Box2D<f32, LayoutPixel>],
) -> Vec<Box2D<f32, LayoutPixel>>
Expand description

Returns the portion of rect not covered by any rect in others, as a set of disjoint rects (possibly empty, if others fully covers rect).