The lines considered so far tend to have an overparameterized representation relative to their degrees of freedom.
A line in the plane has only 2 degrees of freedom, whereas a line written in implicit form depends on 3 parameters, known only up to a multiplicative factor and without a clear geometric meaning.
On the other hand, the explicit equation of a line with two parameters
has a singularity for vertical lines.
One solution to this problem is to change the parameterization and use 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 4.11) to exploit a bounded two-dimensional parameter space.
With this particular form, the distance between a point in space and the line can be written compactly as
Paolo medici