0

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$?

Alex M.
  • 35,207
  • @AlexM. This question is specifically posed in $\mathbb{R}^2$. (By the way, the "gradient" here is what others may call "slope"). –  Jun 07 '15 at 17:12

2 Answers2

0

HINT:

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

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

0

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

mvw
  • 34,562