Function rayIntersectLine

Ray intersection with a line