title: Algorithm to detect intersection of two rectangles?
body: <p>I'm looking for an algorithm to detect if two rectangles intersect (one at an arbitrary angle, the other with only vertical/horizontal lines).</p>
  
  <p>Testing if a corner of one is in the other ALMOST works.  It fails if the rectangles form a cross-like shape.</p>
  
  <p>It seems like a good idea to avoid using slopes of the lines, which would require special cases for vertical lines.</p>