Perform a hit test between two rectangles

Simple example of performing a hit test between two rectangles.