Skip to main content

rects_intersect

Function rects_intersect 

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

true if a and b overlap with positive area — touching edges (sharing a boundary with zero-width overlap) don’t count, so two items placed flush against each other aren’t flagged as colliding.