The lines presented so far tend to have an oversized representation concerning the degrees of freedom.
The line in the plane indeed has only 2 degrees of freedom, while the line expressed in implicit form depends on as many as 3 parameters, known up to a multiplicative factor and without a clearly visible geometric meaning.
On the other hand, the explicit equation of the line with two parameters
exhibits the singularity of vertical lines.
A solution to the problem is to change the parametrization and exploit polar coordinates. Using polar coordinates, it is possible to express a line in a two-dimensional space without singularities and using only 2 parameters:
This equation is commonly used in the Hough transform for lines (section 3.11) in order to exploit a two-dimensional and bounded parameter space.
With this particular form, the distance between a point in space and the line is written in a very compact way as
Paolo medici