Solution:
Let the equation of the line through making an angle with the positive direction of x-axis be
.
Then the coordinates of any point on this line at a distance
r from p are . If and , then are the roots of the equation.
which is satisfied by and thus
the equation of the line is.