Skip to main content

intersect_rects

Function intersect_rects 

Source
fn intersect_rects(a: Rect, b: Rect) -> Option<Rect>
Expand description

Returns the intersection of two rects, or None when they do not overlap.