# Plücker coordinates

In geometry, Plücker coordinates, introduced by Julius Plücker in the 19th century, are a way to assign six homogeneous coordinates to each line in projective 3-space, ⁠$\mathbb {P} ^{3}$⁠. Because they satisfy a quadratic constraint, they establish a one-to-one correspondence between the 4-dimensional space of lines in ⁠$\mathbb {P} ^{3}$⁠ and points on a quadric in ⁠$\mathbb {P} ^{5}$⁠ (projective 5-space). A predecessor and special case of Grassmann coordinates (which describe k-dimensional linear subspaces, or flats, in an n-dimensional Euclidean space), Plücker coordinates arise naturally in geometric algebra. They have proved useful for computer graphics, and also can be extended to coordinates for the screws and wrenches in the theory of kinematics used for robot control.

## Geometric intuition

A line L in 3-dimensional Euclidean space is determined by two distinct points that it contains, or by two distinct planes that contain it (a plane-plane intersection). Consider the first case, with points $x=(x_{1},x_{2},x_{3})$ and $y=(y_{1},y_{2},y_{3}).$ The vector displacement from x to y is nonzero because the points are distinct, and represents the direction of the line. That is, every displacement between points on the line L is a scalar multiple of d = y – x. If a physical particle of unit mass were to move from x to y, it would have a moment about the origin of the coordinate system. The geometric equivalent to this moment is a vector whose direction is perpendicular to the plane containing the line L and the origin, and whose length equals twice the area of the triangle formed by the displacement and the origin. Treating the points as displacements from the origin, the moment is m = x × y, where "×" denotes the vector cross product. For a fixed line, L, the area of the triangle is proportional to the length of the segment between x and y, considered as the base of the triangle; it is not changed by sliding the base along the line, parallel to itself. By definition the moment vector is perpendicular to every displacement along the line, so d ⋅ m = 0, where "⋅" denotes the vector dot product.
Although neither direction d nor moment m alone is sufficient to determine the line L, together the pair does so uniquely, up to a common (nonzero) scalar multiple which depends on the distance between x and y. That is, the coordinates
    $(\mathbf {d} :\mathbf {m} )=(d_{1}:d_{2}:d_{3}\ :\ m_{1}:m_{2}:m_{3})$
may be considered homogeneous coordinates for L, in the sense that all pairs (λd : λm), for λ ≠ 0, can be produced by points on L and only L, and any such pair determines a unique line so long as d is not zero and d ⋅ m = 0. Furthermore, this approach extends to include points, lines, and a plane "at infinity", in the sense of projective geometry. In addition a point $x$ lies on the line L if and only if $x\times d=m$.
    Example. Let x = (2, 3, 7) and y = (2, 1, 0). Then (d : m) = (0 : −2 : −7 : −7 : 14 : −4).
Alternatively, let the equations for points x of two distinct planes containing L be
    ${\begin{aligned}0&=a+\mathbf {a} \cdot \mathbf {x} ,\\0&=b+\mathbf {b} \cdot \mathbf {x} .\end{aligned}}$
Then their respective planes are perpendicular to vectors a and b, and the direction of L must be perpendicular to both. Hence we may set d = a × b, which is nonzero because a, b are neither zero nor parallel (the planes being distinct and intersecting). If point x satisfies both plane equations, then it also satisfies the linear combination
    ${\begin{aligned}0&=a(b+\mathbf {b} \cdot \mathbf {x} )-b(a+\mathbf {a} \cdot \mathbf {x} )\\&=(a\mathbf {b} -b\mathbf {a} )\cdot \mathbf {x} \end{aligned}}$
That is,
    $\mathbf {m} =a\mathbf {b} -b\mathbf {a}$
is a vector perpendicular to displacements to points on L from the origin; it is, in fact, a moment consistent with the d previously defined from a and b.

## Algebraic definition
### Primal coordinates

In a 3-dimensional projective space ⁠$\mathbb {P} ^{3}$⁠, let L be a line through distinct points x and y with homogeneous coordinates (x$_0$ : x$_1$ : x$_2$ : x$_3$) and (y$_0$ : y$_1$ : y$_2$ : y$_3$).
The Plücker coordinates p$_{ij}$ are defined as follows:
    $p_{ij}={\begin{vmatrix}x_{i}&y_{i}\\x_{j}&y_{j}\end{vmatrix}}=x_{i}y_{j}-x_{j}y_{i}.$
(the skew symmetric matrix whose elements are p$_{ij}$ is also called the Plücker matrix ) This implies p$_{ii}$ = 0 and p$_{ij}$ = −p$_{ji}$, reducing the possibilities to only six (4 choose 2) independent quantities. The sextuple
    $(p_{01}:p_{02}:p_{03}:p_{23}:p_{31}:p_{12})$
is uniquely determined by L up to a common nonzero scale factor. Furthermore, not all six components can be zero. Thus the Plücker coordinates of L may be considered as homogeneous coordinates of a point in a 5-dimensional projective space, as suggested by the colon notation.
To see these facts, let M be the 4×2 matrix with the point coordinates as columns.
    $M={\begin{bmatrix}x_{0}&y_{0}\\x_{1}&y_{1}\\x_{2}&y_{2}\\x_{3}&y_{3}\end{bmatrix}}$
The Plücker coordinate p$_{ij}$ is the determinant of rows i and j of M. Because x and y are distinct points, the columns of M are linearly independent; M has rank 2. Let M′ be a second matrix, with columns x′, y′ a different pair of distinct points on L. Then the columns of M′ are linear combinations of the columns of M; so for some 2×2 nonsingular matrix Λ,
    $M'=M\Lambda .$
In particular, rows i and j of M′ and M are related by
    ${\begin{bmatrix}x'_{i}&y'_{i}\\x'_{j}&y'_{j}\end{bmatrix}}={\begin{bmatrix}x_{i}&y_{i}\\x_{j}&y_{j}\end{bmatrix}}{\begin{bmatrix}\lambda _{00}&\lambda _{01}\\\lambda _{10}&\lambda _{11}\end{bmatrix}}.$
Therefore, the determinant of the left side 2×2 matrix equals the product of the determinants of the right side 2×2 matrices, the latter of which is a fixed scalar, det Λ. Furthermore, all six 2×2 subdeterminants in M cannot be zero because the rank of M is 2.

### Plücker map

Denote the set of all lines (linear images of ⁠$\mathbb {P} ^{1}$⁠) in ⁠$\mathbb {P} ^{3}$⁠ by G$_{1,3}$. We thus have a map:
    ${\begin{aligned}\alpha \colon \mathrm {G} _{1,3}&\rightarrow \mathbb {P} ^{5}\\L&\mapsto L^{\alpha },\end{aligned}}$
where
    $L^{\alpha }=(p_{01}:p_{02}:p_{03}:p_{23}:p_{31}:p_{12}).$

### Dual coordinates

Alternatively, a line can be described as the intersection of two planes. Let L be a line contained in distinct planes a and b with homogeneous coefficients (a$^0$ : a$^1$ : a$^2$ : a$^3$) and (b$^0$ : b$^1$ : b$^2$ : b$^3$), respectively. (The first plane equation is ∑$_k$a$^k$x$_k$=0, {\textstyle \sum _{k}a^{k}x_{k}=0, } for example.) The dual Plücker coordinate p$^{ij}$ is
    $p^{ij}={\begin{vmatrix}a^{i}&a^{j}\\b^{i}&b^{j}\end{vmatrix}}=a^{i}b^{j}-a^{j}b^{i}.$
Dual coordinates are convenient in some computations, and they are equivalent to primary coordinates:
    $(p_{01}:p_{02}:p_{03}:p_{23}:p_{31}:p_{12})=(p^{23}:p^{31}:p^{12}:p^{01}:p^{02}:p^{03})$
Here, equality between the two vectors in homogeneous coordinates means that the numbers on the right side are equal to the numbers on the left side up to some common scaling factor λ. Specifically, let (i, j, k, ℓ) be an even permutation of (0, 1, 2, 3); then
    $p_{ij}=\lambda p^{k\ell }.$

### Geometry

To relate back to the geometric intuition, take x$_0$ = 0 as the plane at infinity; thus the coordinates of points not at infinity can be normalized so that x$_0$ = 1. Then M becomes
    $M={\begin{bmatrix}1&1\\x_{1}&y_{1}\\x_{2}&y_{2}\\x_{3}&y_{3}\end{bmatrix}},$
and setting $x=(x_{1},x_{2},x_{3})$ and $y=(y_{1},y_{2},y_{3})$, we have $d=(p_{01},p_{02},p_{03})$and $m=(p_{23},p_{31},p_{12})$.
Dually, we have $d=(p^{23},p^{31},p^{12})$ and $m=(p^{01},p^{02},p^{03}).$

## Bijection between lines and Klein quadric
### Plane equations

If the point $\mathbf {z} =(z_{0}:z_{1}:z_{2}:z_{3})$ lies on L, then the columns of
    ${\begin{bmatrix}x_{0}&y_{0}&z_{0}\\x_{1}&y_{1}&z_{1}\\x_{2}&y_{2}&z_{2}\\x_{3}&y_{3}&z_{3}\end{bmatrix}}$
are linearly dependent, so that the rank of this larger matrix is still 2. This implies that all 3×3 submatrices have determinant zero, generating four (4 choose 3) plane equations, such as
    ${\begin{aligned}0&={\begin{vmatrix}x_{0}&y_{0}&z_{0}\\x_{1}&y_{1}&z_{1}\\x_{2}&y_{2}&z_{2}\end{vmatrix}}\\[5pt]&={\begin{vmatrix}x_{1}&y_{1}\\x_{2}&y_{2}\end{vmatrix}}z_{0}-{\begin{vmatrix}x_{0}&y_{0}\\x_{2}&y_{2}\end{vmatrix}}z_{1}+{\begin{vmatrix}x_{0}&y_{0}\\x_{1}&y_{1}\end{vmatrix}}z_{2}\\[5pt]&=p_{12}z_{0}-p_{02}z_{1}+p_{01}z_{2}.\\[5pt]&=p^{03}z_{0}+p^{13}z_{1}+p^{23}z_{2}.\end{aligned}}$
The four possible planes obtained are as follows.
    ${\begin{matrix}0&=&+p_{12}z_{0}&-p_{02}z_{1}&+p_{01}z_{2}&\\0&=&-p_{31}z_{0}&-p_{03}z_{1}&&+p_{01}z_{3}\\0&=&+p_{23}z_{0}&&-p_{03}z_{2}&+p_{02}z_{3}\\0&=&&+p_{23}z_{1}&+p_{31}z_{2}&+p_{12}z_{3}\end{matrix}}$
Using dual coordinates, and letting (a$^0$ : a$^1$ : a$^2$ : a$^3$) be the line coefficients, each of these is simply a$^i$ = p$^{ij}$, or
    $0=\sum _{i=0}^{3}p^{ij}z_{i},\qquad j=0,\ldots ,3.$
Each Plücker coordinate appears in two of the four equations, each time multiplying a different variable; and as at least one of the coordinates is nonzero, we are guaranteed non-vacuous equations for two distinct planes intersecting in L. Thus the Plücker coordinates of a line determine that line uniquely, and the map α is an injection.

### Quadratic relation

The image of α is not the complete set of points in ⁠$\mathbb {P} ^{5}$⁠; the Plücker coordinates of a line L satisfy the quadratic Plücker relation
    ${\begin{aligned}0&=p_{01}p^{01}+p_{02}p^{02}+p_{03}p^{03}\\&=p_{01}p_{23}+p_{02}p_{31}+p_{03}p_{12}.\end{aligned}}$
For proof, write this homogeneous polynomial as determinants and use Laplace expansion (in reverse).
    ${\begin{aligned}0&={\begin{vmatrix}x_{0}&y_{0}\\x_{1}&y_{1}\end{vmatrix}}{\begin{vmatrix}x_{2}&y_{2}\\x_{3}&y_{3}\end{vmatrix}}+{\begin{vmatrix}x_{0}&y_{0}\\x_{2}&y_{2}\end{vmatrix}}{\begin{vmatrix}x_{3}&y_{3}\\x_{1}&y_{1}\end{vmatrix}}+{\begin{vmatrix}x_{0}&y_{0}\\x_{3}&y_{3}\end{vmatrix}}{\begin{vmatrix}x_{1}&y_{1}\\x_{2}&y_{2}\end{vmatrix}}\\[5pt]&=(x_{0}y_{1}-y_{0}x_{1}){\begin{vmatrix}x_{2}&y_{2}\\x_{3}&y_{3}\end{vmatrix}}-(x_{0}y_{2}-y_{0}x_{2}){\begin{vmatrix}x_{1}&y_{1}\\x_{3}&y_{3}\end{vmatrix}}+(x_{0}y_{3}-y_{0}x_{3}){\begin{vmatrix}x_{1}&y_{1}\\x_{2}&y_{2}\end{vmatrix}}\\[5pt]&=x_{0}\left(y_{1}{\begin{vmatrix}x_{2}&y_{2}\\x_{3}&y_{3}\end{vmatrix}}-y_{2}{\begin{vmatrix}x_{1}&y_{1}\\x_{3}&y_{3}\end{vmatrix}}+y_{3}{\begin{vmatrix}x_{1}&y_{1}\\x_{2}&y_{2}\end{vmatrix}}\right)-y_{0}\left(x_{1}{\begin{vmatrix}x_{2}&y_{2}\\x_{3}&y_{3}\end{vmatrix}}-x_{2}{\begin{vmatrix}x_{1}&y_{1}\\x_{3}&y_{3}\end{vmatrix}}+x_{3}{\begin{vmatrix}x_{1}&y_{1}\\x_{2}&y_{2}\end{vmatrix}}\right)\\[5pt]&=x_{0}{\begin{vmatrix}x_{1}&y_{1}&y_{1}\\x_{2}&y_{2}&y_{2}\\x_{3}&y_{3}&y_{3}\end{vmatrix}}-y_{0}{\begin{vmatrix}x_{1}&x_{1}&y_{1}\\x_{2}&x_{2}&y_{2}\\x_{3}&x_{3}&y_{3}\end{vmatrix}}\end{aligned}}$
Since both 3×3 determinants have duplicate columns, the right hand side is identically zero.
Another proof may be done like this: Since vector
    $d=\left(p_{01},p_{02},p_{03}\right)$
is perpendicular to vector
    $m=\left(p_{23},p_{31},p_{12}\right)$
(see above), the scalar product of d and m must be zero. q.e.d.

### Point equations

Letting (x$_0$ : x$_1$ : x$_2$ : x$_3$) be the point coordinates, four possible points on a line each have coordinates x$_i$ = p$_{ij}$, for j = 0, 1, 2, 3. Some of these possible points may be inadmissible because all coordinates are zero, but since at least one Plücker coordinate is nonzero, at least two distinct points are guaranteed.

### Bijectivity

If $(q_{01}:q_{02}:q_{03}:q_{23}:q_{31}:q_{12})$ are the homogeneous coordinates of a point in ⁠$\mathbb {P} ^{5}$⁠, without loss of generality assume that q$_{01}$ is nonzero. Then the matrix
    $M={\begin{bmatrix}q_{01}&0\\0&q_{01}\\-q_{12}&q_{02}\\q_{31}&q_{03}\end{bmatrix}}$
has rank 2, and so its columns are distinct points defining a line L. When the ⁠$\mathbb {P} ^{5}$⁠ coordinates, q$_{ij}$, satisfy the quadratic Plücker relation, they are the Plücker coordinates of L. To see this, first normalize q$_{01}$ to 1. Then we immediately have that for the Plücker coordinates computed from M, p$_{ij}$ = q$_{ij}$, except for
    $p_{23}=-q_{03}q_{12}-q_{02}q_{31}.$
But if the q$_{ij}$ satisfy the Plücker relation
    $q_{23}+q_{02}q_{31}+q_{03}q_{12}=0,$
then p$_{23}$ = q$_{23}$, completing the set of identities.
Consequently, α is a surjection onto the algebraic variety consisting of the set of zeros of the quadratic polynomial
    $p_{01}p_{23}+p_{02}p_{31}+p_{03}p_{12}.$
And since α is also an injection, the lines in ⁠$\mathbb {P} ^{3}$⁠ are thus in bijective correspondence with the points of this quadric in ⁠$\mathbb {P} ^{5}$⁠, called the Plücker quadric or Klein quadric.

## Uses

Plücker coordinates allow concise solutions to problems of line geometry in 3-dimensional space, especially those involving incidence.

### Line-line crossing

Two lines in ⁠$\mathbb {P} ^{3}$⁠ are either skew or coplanar, and in the latter case they are either coincident or intersect in a unique point. If p$_{ij}$ and p′$_{ij}$ are the Plücker coordinates of two lines, then they are coplanar precisely when
    $\mathbf {d} \cdot \mathbf {m} '+\mathbf {m} \cdot \mathbf {d} '=0,$
as shown by
    ${\begin{aligned}0&=p_{01}p'_{23}+p_{02}p'_{31}+p_{03}p'_{12}+p_{23}p'_{01}+p_{31}p'_{02}+p_{12}p'_{03}\\[5pt]&={\begin{vmatrix}x_{0}&y_{0}&x'_{0}&y'_{0}\\x_{1}&y_{1}&x'_{1}&y'_{1}\\x_{2}&y_{2}&x'_{2}&y'_{2}\\x_{3}&y_{3}&x'_{3}&y'_{3}\end{vmatrix}}.\end{aligned}}$
When the lines are skew, the sign of the result indicates the sense of crossing: positive if a right-handed screw takes L into L′, else negative.
The quadratic Plücker relation essentially states that a line is coplanar with itself.

### Line-line join

In the event that two lines are coplanar but not parallel, their common plane has equation
    $0=(\mathbf {m} \cdot \mathbf {d} ')x_{0}+(\mathbf {d} \times \mathbf {d} ')\cdot \mathbf {x} ,$
where $x=(x_{1},x_{2},x_{3}).$
The slightest perturbation will destroy the existence of a common plane, and near-parallelism of the lines will cause numeric difficulties in finding such a plane even if it does exist.

### Line-line meet

Dually, two coplanar lines, neither of which contains the origin, have common point
    $(x_{0}:\mathbf {x} )=(\mathbf {d} \cdot \mathbf {m} ':\mathbf {m} \times \mathbf {m} ').$
To handle lines not meeting this restriction, see the references.

### Plane-line meet

Given a plane with equation
    $0=a^{0}x_{0}+a^{1}x_{1}+a^{2}x_{2}+a^{3}x_{3},$
or more concisely,
    $0=a^{0}x_{0}+\mathbf {a} \cdot \mathbf {x} ;$
and given a line not in it with Plücker coordinates (d : m), then their point of intersection is
    $(x_{0}:\mathbf {x} )=(\mathbf {a} \cdot \mathbf {d} :\mathbf {a} \times \mathbf {m} -a_{0}\mathbf {d} ).$
The point coordinates, (x$_0$ : x$_1$ : x$_2$ : x$_3$), can also be expressed in terms of Plücker coordinates as
    $x_{i}=\sum _{j\neq i}a^{j}p_{ij},\qquad i=0\ldots 3.$

### Point-line join

Dually, given a point (y$_0$ : y) and a line not containing it, their common plane has equation
    $0=(\mathbf {y} \cdot \mathbf {m} )x_{0}+(\mathbf {y} \times \mathbf {d} -y_{0}\mathbf {m} )\cdot \mathbf {x} .$
The plane coordinates, (a$^0$ : a$^1$ : a$^2$ : a$^3$), can also be expressed in terms of dual Plücker coordinates as
    $a^{i}=\sum _{j\neq i}y_{j}p^{ij},\qquad i=0\ldots 3.$

### Line families

Because the Klein quadric is in ⁠$\mathbb {P} ^{5}$⁠, it contains linear subspaces of dimensions one and two (but no higher). These correspond to one- and two-parameter families of lines in ⁠$\mathbb {P} ^{3}$⁠.
For example, suppose L, L′ are distinct lines in ⁠$\mathbb {P} ^{3}$⁠ determined by points x, y and x′, y′, respectively. Linear combinations of their determining points give linear combinations of their Plücker coordinates, generating a one-parameter family of lines containing L and L′. This corresponds to a one-dimensional linear subspace belonging to the Klein quadric.

#### Lines in plane

If three distinct and non-parallel lines are coplanar; their linear combinations generate a two-parameter family of lines, all the lines in the plane. This corresponds to a two-dimensional linear subspace belonging to the Klein quadric.

#### Lines through point

If three distinct and non-coplanar lines intersect in a point, their linear combinations generate a two-parameter family of lines, all the lines through the point. This also corresponds to a two-dimensional linear subspace belonging to the Klein quadric.

#### Ruled surface

A ruled surface is a family of lines that is not necessarily linear. It corresponds to a curve on the Klein quadric. For example, a hyperboloid of one sheet is a quadric surface in ⁠$\mathbb {P} ^{3}$⁠ ruled by two different families of lines, one line of each passing through each point of the surface; each family corresponds under the Plücker map to a conic section within the Klein quadric in ⁠$\mathbb {P} ^{5}$⁠.

### Line geometry

During the nineteenth century, line geometry was studied intensively. In terms of the bijection given above, this is a description of the intrinsic geometry of the Klein quadric.

#### Ray tracing

Line geometry is extensively used in ray tracing application where the geometry and intersections of rays need to be calculated in 3D. An implementation is described in Introduction to Plücker Coordinates written for the Ray Tracing forum by Thouis Jones.