The following contains code for: http://rubyquiz.strd6.com/quizzes/233-geometric-intersections