Overlapping Rectangles

Testing if two rectangles overlap (possible application - collision
detection).