spinners and fmt
This commit is contained in:
@@ -12,8 +12,5 @@ pub fn rgba8_to_color(c: Rgba8) -> Color {
|
||||
|
||||
/// Returns true if two `Rect`s share at least one cell.
|
||||
pub fn rects_overlap(a: Rect, b: Rect) -> bool {
|
||||
a.x < b.x + b.width
|
||||
&& b.x < a.x + a.width
|
||||
&& a.y < b.y + b.height
|
||||
&& b.y < a.y + a.height
|
||||
}
|
||||
a.x < b.x + b.width && b.x < a.x + a.width && a.y < b.y + b.height && b.y < a.y + a.height
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user