Skip to main content

subtract_one

Function subtract_one 

Source
fn subtract_one(
    a: Box2D<f32, LayoutPixel>,
    b: Box2D<f32, LayoutPixel>,
) -> Vec<Box2D<f32, LayoutPixel>>
Expand description

Splits a into the (up to four) disjoint rects that remain once b is removed from it.