Intersection of Two Lines

Let $\ell_1$ and $\ell_2$ be two lines with parameters $\mathbf{l}_1$ and $\mathbf{l}_2$ that intersect at the point $\mathbf {x}$, expressed in homogeneous coordinates. To find the intersection point, we must solve a homogeneous system of the form

\begin{displaymath}
\left\{ \begin{array}{rl}
\mathbf{l}_1^{\top} \mathbf{x} &...
... \mathbf{l}_2^{\top} \mathbf{x} & = 0 \\
\end{array} \right.
\end{displaymath} (1.75)

The system, of type $\mathbf{A}\mathbf{x}=0$, can also be extended to the case of n intersecting lines, with $n > 2$, yielding an overdetermined system that can be solved using SVD or QR decomposition. The solution to the noisy overdetermined problem is the point that minimizes the algebraic residual of Equation (1.75).

For just two lines, system (1.75) gives the solution directly. The intersection of two lines $\mathbf{l}_1$ and $\mathbf{l}_2$, written in implicit form (1.59), is the point $\mathbf{x} = \mathbf{l}_1 \times \mathbf{l}_2$ in homogeneous coordinates, where $\times$ is the cross product.

Note that since homogeneous coordinates can represent points at infinity, this formalism also accommodates the case where the two lines are parallel.



Paolo medici
2026-10-19