How to find coordinates of points lying at given distance from point on line?

951 Views Asked by At

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?

2

There are 2 best solutions below

2
On BEST ANSWER

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.

0
On

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