Converts this LineSegment to a Ray.
The pos member of the returned Ray will be equal to a, and the dir member equal to Dir().
class Ray, ToLine().