Find coordinate of end point of a line

trigonometryvectors

enter image description here

How do I find the coordinates of the endpoint of a line with its length, starting position and angle relative to the x-axis? Thank you in advance.

Best Answer

Let's call the unknown points $(x_1,y_1)$

The known point is (x,y)

Since we know the length of the line, let's call it $l$ $$\sin \theta= \frac{x_1-x}{l}$$ $$\cos \theta= \frac{y_1-y}{l}$$ $$x_1=l\sin \theta+x$$ $$y_1=l\cos \theta+y$$