Computing rotated rectangle intersection area using C++

  area, c++, computational-geometry, intersection, rectangles

I am trying to calculate the intersection area of two arbitrarily sized and rotated rectangles using C++. I have found some information on non-rotated rectangles but very little on rotated and different sized rectangles. I would like to create a C/C++ program to do this.

Does anyone out there have any information/hints or better yet, some simple code that could help?

Thank you in advance for any assistance.

Source: Windows Questions C++