Been struggling to come up with a solution to return a rectangle representing the actual intersection between two rectangles.
What I am looking for is much like this: MSDN - Rectangle::Intersect Method (Rectangle, Rectangle)
As the picture shows I would like to have the rectangle colored in green returned from an intersection between two rectangles. Not some boolean value true or false.
I will accept a code sample or just plain theory as an answer. Thanks in advance!