The line representations considered so far use more parameters than their degrees of freedom require.
A line in the plane has only 2 degrees of freedom, whereas its implicit equation depends on 3 parameters, which are defined up to a multiplicative factor and have no clear geometric interpretation.
On the other hand, the explicit equation of a line, with two parameters
, is singular for vertical lines.
One way to address this problem is to change the parameterization and use polar coordinates.
In polar coordinates, a line in a two-dimensional space can be represented without singularities using only 2 parameters:
This equation is commonly used in the Hough transform for lines (Section 4.11), which uses a bounded, two-dimensional parameter space.
With this representation, the distance between a point in space and the line can be written compactly as
Paolo medici