Getting the coordinates of a point on section

26 Views Asked by At

What is the endpoint $P(x,y)$ of a line segment , if I know its starting point: $C(x(1), y(1))$, the gradient $G$, and its length $L$?

2

There are 2 best solutions below

1
On BEST ANSWER

HINT:

$$(x-x_1)^2+(y-y_1)^2=L^2$$

and $$G=\dfrac{y-y_1}{x-x_1}$$

5
On

$$ D = C + L (G/\lVert G\rVert) $$ where $$ \lVert G\rVert= \sqrt{\sum_{i=1}^2 G_i^2} $$ is the length of $G$.