Line segment
are two points
form the line passing through and
Values between 0 and 1 give points on the (closed) line segment between and
is the direction which points from to . As increases from to , the point moves from to .
Line segment
y=θx1+(1−θ)x2=x2+θ(x1−x2)x1=x2 are two points ∈Rn
θ∈R form the line passing through x1 and x2
θ=1→y=x1
θ=0→y=x2
Values between 0 and 1 give points on the (closed) line segment between x1 and x2
x1−x2 is the direction which points from x2 to x1. As θ increases from 0 to 1, the point y moves from x2 to x1.