Line

There are several ways to express the concept of a line.

In the most general, multidimensional case, a line, the locus of points $\mathbf{x} \in \mathbb{R}^n$ of dimension 1, takes the form

\begin{displaymath}
\mathbf{x} = \mathbf{p} + t \mathbf{v}
\end{displaymath} (1.58)

where $\mathbf{p} \in \mathbb{R}^n$ is an arbitrary origin point, $\mathbf{v} \in \mathbb{R}^n$ is the direction vector, and $t \in \mathbb{R}$ is a scalar. This is called a parametric ray.

In many applications, the line is a concept specific to two-dimensional space. In this space, we omit the explicit form of the line equation, $y=mx + q$, because it has singularities, and focus instead on the implicit form. The implicit equation of a line is:

\begin{displaymath}
a x + b y + c = 0
\end{displaymath} (1.59)

This representation is useful because it handles both horizontal and vertical lines without singularities. The parameter $c$ is zero when the line passes through the origin, and, of course, the line passes through a point $(x',y')$ when $c=-ax'-by'$.

In two dimensions, the parametric ray equation (1.58) reduces to the implicit line equation with parameters

\begin{displaymath}
(a,b) \cdot \mathbf{v} = 0 \quad c = - (a,b) \cdot \mathbf{p}
\end{displaymath} (1.60)

The first of equations (1.60) shows that the vector formed by the parameters $(a,b)$ is orthogonal to the direction vector. The vector generating the line is, for example, proportional to $\mathbf{v} \propto (-b, a)$ or $\mathbf{v} \propto (\frac{1}{a},-\frac{1}{b})$. The vector $\mathbf{v}'$ orthogonal to the given line is simply $\mathbf{v}' \propto (a,b)$, and the line orthogonal to the given line has the implicit equation

\begin{displaymath}
bx - ay + c' = 0
\end{displaymath} (1.61)

where $c'$ is obtained by selecting the point on the original line through which the perpendicular must pass.

The parameters of a line in implicit form are homogeneous (Equation (1.59) is in fact called the homogeneous equation of a line); that is, they represent a vector subspace of $\mathbb{R}^3$: any multiple of these parameters represents the same line. These parameters are therefore defined up to a multiplicative factor. This observation suggests another way to represent a line or a general hyperplane.

Lines in implicit homogeneous form must satisfy the equation (dot product):

\begin{displaymath}
\mathbf{l}^{\top} \mathbf{x} = 0
\end{displaymath} (1.62)

where $\mathbf{x} \in \mathbb{R}^{3}$ is a point in homogeneous coordinates and $\mathbf{l}=(a,b,c)^{\top}$ are the line parameters. For homogeneous coordinates, see the previous Section 1.5; for the implications of this formulation for point-line duality, see Paragraph 1.6.7.

Since an implicit line is defined up to a multiplicative factor, the same line can be expressed in infinitely many ways. One possible normalization is to divide the parameters by the length $\sqrt{a^2 +b^2}$. This yields a particular representation of the line, since the parameters are those of a line expressed in polar coordinates using the same equation form as Equation (1.82). With this normalization, the parameter $c$ represents the minimum distance between the line and the origin.

Finally, since a line is a hyperplane in two dimensions, its equation can be written as in Equation (1.85).

Paolo medici
2026-10-19