I need to estimate the overlap ratio of two rectangles, each one with arbitrary size and orientation.
I know how to perform the exact computation, using the Sutherland-Hodgman algorithm, which can be optimized for this case.
Anyway as I need to use that function intensively and perfect accuracy isn't required (say 10% error can be tolerated), I was wondering if it cannot be evaluated in a faster way.
If that helps, one can assume the same aspect ratio for both rectangles, and ratio of the areas not exceeding $4$.
Here is an untested idea:
Take the thinnest rectangle (in red). Intersect one of its long edges with the other rectangle (in blue). Estimate the overlap using the subrectangle (in green) of the first rectangle defined by the two interaction points. If there is only one intersection point, use the vertex that is inside the other rectangle as the second point.