
A point on line can be represented as where t is a scalar
Point(t) = P + t * V
Varying t will give you points on the line, Now let’s see what is the difference between a line and a Ray, a line extends to both direction whereas a Ray has a origin and one direction @ which it travels. Also for a ray t must be a non-negative value.