Skip to main content

rects_intersect

Function rects_intersect 

Source
pub fn rects_intersect(a: Rect, b: Rect) -> bool
Expand description

Whether two destination rectangles overlap.

Computed in i64 so a rectangle placed near i32::MAX cannot wrap into a false negative.