title: Determine if line intersects CGRect
body: <p>What is the most efficient way to determine if a line intersects a rectangle?</p>
  
  <p>I'm looking for something similar to this:</p>
  
  <pre><code>CGPoint startLine = CGPointMake(5.0f,5.0f);
  CGPoint endLine = CGPointMake(25.0f,25.0f);
  
  CGRect intersectingRect = CGRectMake(10.0f,10.0f,50.0f,50.0f);
  
  if (CGRectContainsLine(intersectingRect,startLine,endLine)) { //true
      //line intersects rectangle
  }
  </code></pre>