intersects method

bool intersects(
  1. Rect o
)

Implementation

bool intersects(Rect o) =>
    left < o.right && right > o.left && top < o.bottom && bottom > o.top;