How can we convert $ax + by + c = 0$ to $x\cos α + y\sin α = p$? Here $α$ is the angle of perpendicular $p$ w.r.t $x$-axis.
I compared both equations and got $ax = x \cos α$, $by = y \sin α$ and $c = -p$, and got $a = \cos α$ and $b = \sin α$. I do not know what to do afterward.