intersects method

bool intersects(
  1. Rect2D o
)

Implementation

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