point - line distance
ray to line segment