Converts the ray into a 2D Line segment with its start point coinciding
with the ray origin and its other end point at the given distance along
the ray.
Converts the ray into a 3D Line segment with its start point coinciding
with the ray origin and its other end point at the given distance along
the ray.