I have two endpoints $(x_1, y_1)$ and $(x_2,y_2)$ of a line segment. I want to extend the existing segment by a length of $d$ on just one side of the segment. What are the coordinates of the new endpoint?
So I have $(x_1,y_1)$, $(x_2,y_2)$. I will let the new point have coordinates at $(x_3,y_3)$. I am drawing right triangles with the hope of using similarity in triangles.
Let the slope of the current segment to be $m = \dfrac{y_2-y_1}{x_2-x_1}$ and the current length to be $r= \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}$.
How can I proceed? I feel it is confusing.
