Returns whether other overlaps this rectangle.
other
bool overlaps(Rectangle other) => !(other.maxX <= minX || other.minX >= maxX || other.maxY <= minY || other.minY >= maxY);