public bool Overlaps(Rect other) { return x0 <= other.x1 && x1 >= other.x0 && y0 <= other.y1 && y1 >= other.y0; }