I looked at this post (Java check if two rectangles overlap at any point) to check the overlap of two rectangles. example image
Now i need to know the size of red rectangle. How can i do it?
I reformulate the question as seen in the image, I need to know the size of each red sub-rectangle Thank you in advance. Pasquale