Let a and b be two-dimensional vectors. Notice that a and b can also be regarded as points in a 2D coordinate plane.
The parametric equation of a line segment that goes from a to b using a parameter t that ranges from 0 to 1 is:
And each component would be given by:
We can use an alternative parameter that moves from 0 to k replacing t for t/k:
Use these expressions to find parametric equations for a line segment that connects the given points.
3) Init: (-5,8), term: (3,7)
For 0≤t≤4:
For 0≤t≤12:
4) Init: (3,7), term: (-5,8)
For 0≤t≤4:
For 0≤t≤12: