Equation of a line:
$$Ax+By+C=0$$
Point on this line:
$$D_1(x_1, y_1)$$
How to find coordinates of points $D_2(x_2, y_2)$ and $D_3(x_3, y_3)$ lying at distance $r$ from point $D_1$ on this line?
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityEquation of a line:
$$Ax+By+C=0$$
Point on this line:
$$D_1(x_1, y_1)$$
How to find coordinates of points $D_2(x_2, y_2)$ and $D_3(x_3, y_3)$ lying at distance $r$ from point $D_1$ on this line?
If the distance $r$ from $D_1$ is meant normal to the line, you have points (x,y) with
(distance)
$ (x-x_1)^2 + (y-y_1)^2 = r^2 $
For normality: the line $Ax+By+C=0$ has slope $-A/B$. The vector $(y-y_1, x-x_1)$ is normal to the line, so it must have slope $B/A$:
$ \frac{x-x_1}{y-y_1} = A/B $
From here the two solutions for $D_2$ and $D_3$ follow.
$$y_i=-\dfrac{Ax_i+C}B$$
$$r=\sqrt{(x_1-x_i)^2+\left(\dfrac{A(x_i-x_1)}B\right)^2}=\dfrac{|x_i-x_1|\sqrt{A^2+B^2}}{|B|}$$ where $i=2,3$
$$\implies x_i-x_1=\pm\dfrac{Br}{\sqrt{A^2+B^2}}$$
Clearly, $x_1,A,B,r$ are known