0
$\begingroup$

I have a straight that passes through the points $(a, b)$ and $(c, d)$. If I want to extend this length in an arbitrary value "$V$", how can I calculate the additional points where the straight will pass through?

Thanks a lot!

  • 0
    $y-b=\frac{d-b}{c-a}(x-a)$2011-10-11

1 Answers 1

2

One can easily construct the parametric equations of a line through the points $(a,b)$ and $(c,d)$:

$\begin{align*}x&=(1-t)a+tc\\y&=(1-t)b+td\end{align*}$

$t=0$ yields the point $(a,b)$, $t=1$ yields $(c,d)$, and values of $t$ outside $[0,1]$ will yield points that weren't in your original line segment...