optimized code for plane intersections

Less unnecessary stuff is computed in case nothing is hit