I have multiple rectangles and one special rectangle: the selection rect.
I want to check for each rectangle if the rectangle contains at least one point which is inside the
// Left x
int leftX = Math.max(x1, x3);
// Right x
int rightX = Math.min(x2, x4);
// Bottom y
int botY = Math.max(y1, y3);
// TopY
int topY = Math.min(y2, y4);
if (rightX > leftX && topY > botY)
return true;