Domanda di colloquio di Autodesk

How to detect if two rectangles overlap?