ray to line segment FIX