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
I would make Rectangle objects and then use the Rectangle.intersects
and Rectangle.contains
methods to determine if they intersect or if one contains the other.
Since you have one big rectangle, that is the selection rectangle, this is even easier than I thought. Run Rectangle.contains, and for all rectangles that aren't contained, run Rectangle.intersects, and you have what you are seeking.