Detect Rectangle Overlap

Hi I am using the Aline package to draw lines ingame and with your help was able to draw a rectangle around the line. What i need to solve next is a way to detect if two of those outer rectangles overlap. I have a function to detect if the two lines overlap but not sure how to detect of the rectangle outlines overlap.

If you have any existing functions or suggestions on how i might accomplish that it would be greatly appreciated.

Glenn

Hi

This is not really in the scope of the ALINE package. But you can find a good solution here: math - How to check intersection between 2 rotated rectangles? - Stack Overflow