Search Knowledge

© 2026 LIBREUNI PROJECT

Projective Geometry

Projective Geometry

Projective geometry studies geometric properties that are invariant under projective transformations. It extends Euclidean geometry by adding “points at infinity.”

Homogeneous Coordinates

In nn-dimensional projective space Pn\mathbb{P}^n, a point is represented by (n+1)(n+1) coordinates [x0:x1::xn][x_0 : x_1 : \dots : x_n], where not all are zero. Two sets of coordinates represent the same point if they are scalar multiples of each other: [x]=[λx]for λ0[x] = [\lambda x] \quad \text{for } \lambda \neq 0

For the projective line P1\mathbb{P}^1, the point [1:0][1 : 0] represents the point at infinity.

python
1def to_homogeneous(x, y):
2 return [x, y, 1]
3 
4def from_homogeneous(coords):
5 x, y, w = coords
6 if w == 0:
7 return "Point at infinity"
8 return [x/w, y/w]
9 
10# A standard point
11p1 = to_homogeneous(5, 10)
12print(f"Homogeneous: {p1} -> Euclidean: {from_homogeneous(p1)}")
13 
14# A scaled homogeneous point
15p2 = [10, 20, 2] # Same as [5, 10, 1]
16print(f"Scaled Homogeneous: {p2} -> Euclidean: {from_homogeneous(p2)}")

Duality

One of the most profound features of projective geometry is the principle of duality: for any theorem in two-dimensional projective geometry, there is a dual theorem obtained by interchanging the roles of “points” and “lines.”

In P2, what is the intersection of any two distinct lines?

Cross-Ratio

The cross-ratio is the fundamental invariant of projective geometry. For four collinear points A,B,C,DA, B, C, D, the cross-ratio is defined as: (A,B;C,D)=ACBDBCAD(A, B; C, D) = \frac{AC \cdot BD}{BC \cdot AD} where ACAC denotes the signed distance from AA to CC.

python
1def cross_ratio(a, b, c, d):
2 return ((c - a) * (d - b)) / ((c - b) * (d - a))
3 
4print(f"Cross ratio of 0, 1, 2, 5: {cross_ratio(0, 1, 2, 5):.2f}")
5print(f"Cross ratio of 10, 11, 12, 15: {cross_ratio(10, 11, 12, 15):.2f}")
6# Note how translation preserves the ratio!

Projective transformations (homographies) preserve which property?

Perspective and Projections

Projective geometry provides the mathematical foundation for computer vision and 3D graphics, where 3D scenes are projected onto 2D image planes (cameras).

Next Module Proof Techniques