Inmathematics,homogeneous coordinates orprojective coordinates, introduced byAugust Ferdinand Möbius in his 1827 workDer barycentrische Calcul,[1][2][3] are asystem of coordinates used inprojective geometry, just asCartesian coordinates are used inEuclidean geometry. They have the advantage that the coordinates of points, includingpoints at infinity, can be represented using finite coordinates. Formulas involving homogeneous coordinates are often simpler and more symmetric than their Cartesian counterparts. Homogeneous coordinates have a range of applications, includingcomputer graphics and 3Dcomputer vision, where they allowaffine transformations and, in general,projective transformations to be easily represented by amatrix. They are also used in fundamentalelliptic curve cryptography algorithms.[4]

If homogeneous coordinates of a point are multiplied by a non-zeroscalar then the resulting coordinates represent the same point. Since homogeneous coordinates are also given to points at infinity, the number of coordinates required to allow this extension is one more than the dimension of theprojective space being considered. For example, two homogeneous coordinates are required to specify a point on the projective line and three homogeneous coordinates are required to specify a point in the projective plane.
Introduction
editThereal projective plane can be thought of as theEuclidean plane with additional points added, which are calledpoints at infinity, and are considered to lie on a new line, theline at infinity. There is a point at infinity corresponding to each direction (numerically given by the slope of a line), informally defined as the limit of a point that moves in that direction away from the origin. Parallel lines in the Euclidean plane are said to intersect at a point at infinity corresponding to their common direction. Given a point on the Euclidean plane, for any non-zero real number , the triple is called a set of homogeneous coordinates for the point. By this definition, multiplying the three homogeneous coordinates by a common, non-zero factor gives a new set of homogeneous coordinates for the same point. In particular, is such a system of homogeneous coordinates for the point .For example, the Cartesian point can be represented in homogeneous coordinates as or . The original Cartesian coordinates are recovered by dividing the first two positions by the third. Thus unlike Cartesian coordinates, a single point can be represented by infinitely many homogeneous coordinates.
The equation of a line through the origin may be written where and are not both . Inparametric form this can be written . Let , so the coordinates of a point on the line may be written . In homogeneous coordinates this becomes . In the limit, as approaches infinity, in other words, as the point moves away from the origin, approaches and the homogeneous coordinates of the point become . Thus we define as the homogeneous coordinates of the point at infinity corresponding to the direction of the line . As any line of the Euclidean plane is parallel to a line passing through the origin, and since parallel lines have the same point at infinity, the infinite point on every line of the Euclidean plane has been given homogeneous coordinates.
To summarize:
- Any point in the projective plane is represented by a triple , called 'homogeneous coordinates' or 'projective coordinates' of the point, where , and are not all .
- The point represented by a given set of homogeneous coordinates is unchanged if the coordinates are multiplied by a common factor.
- Conversely, two sets of homogeneous coordinates represent the same point if and only if one is obtained from the other by multiplying all the coordinates by the same non-zero constant.
- When is not the point represented is the point in the Euclidean plane.
- When is the point represented is a point at infinity.
The triple is omitted and does not represent any point. Theorigin of the Euclidean plane is represented by .[5]
Notation
editSome authors use different notations for homogeneous coordinates which help distinguish them from Cartesian coordinates. The use of colons instead of commas, for example instead of , emphasizes that the coordinates are to be considered ratios.[6] Square brackets, as in emphasize that multiple sets of coordinates are associated with a single point.[7] Some authors use a combination of colons and square brackets, as in .[8]
Other dimensions
editThe discussion in the preceding section applies analogously to projective spaces other than the plane. So the points on theprojective line may be represented by pairs of coordinates , not both zero. In this case, the point at infinity is . Similarly the points in projective -space are represented by -tuples.[9]
Other projective spaces
editThe use ofreal numbers gives homogeneous coordinates of points in the classical case of the real projective spaces, however anyfield may be used, in particular, thecomplex numbers may be used forcomplex projective space. For example, thecomplex projective line uses two homogeneous complex coordinates and is known as theRiemann sphere. Other fields, includingfinite fields, can be used.
Homogeneous coordinates for projective spaces can also be created with elements from adivision ring (a skew field). However, in this case, care must be taken to account for the fact that multiplication may not becommutative.[10]
For the generalringA, aprojective line overA can be defined with homogeneous factors acting on the left and theprojective linear group acting on the right.
Alternative definition
editAnother definition of the real projective plane can be given in terms ofequivalence classes. For non-zero elementsof , define to mean there is anon-zero so that . Then is anequivalence relation and the projective plane can be defined as theequivalence classes of If isone of the elements of the equivalence class then these are taken to be homogeneous coordinates of .
Lines in this space are defined to be sets of solutions of equations of the form where not all of , and are zero. Satisfaction of the condition depends only on the equivalence class of so the equation defines a setof points in the projective plane. The mapping defines an inclusion from theEuclidean plane to the projective plane and the complement of the image is the set of points with . The equation is an equation of a line in the projective plane(see definition of a line in the projective plane), and iscalled the line at infinity.
The equivalence classes, , are the lines through the origin with the origin removed. The origin does not really play anessential part in the previous discussion so it can be added back in without changing the properties of the projectiveplane. This produces a variation on the definition, namely the projective plane is defined as the set of lines in that pass through the origin and the coordinates of a non-zero element of a line are taken to be homogeneous coordinates of the line. These lines are now interpreted as points in theprojective plane.
Again, this discussion applies analogously to other dimensions. So the projective space of dimension n can be defined asthe set of lines through the origin in .[11]
Homogeneity
editHomogeneous coordinates are not uniquely determined by a point, so a function defined on the coordinates, say , does not determine a function defined on points as with Cartesian coordinates.But a condition defined on the coordinates, as might be used to describe acurve, determines a condition on points if the function ishomogeneous. Specifically, supposethere is a such that
If a set of coordinates represents the same point as then it can be written for some non-zero value of . Then
Apolynomial of degree can be turned into ahomogeneous polynomial byreplacing with , with and multiplying by , in other words bydefining
The resulting function is a polynomial, so it makes sense to extend its domain to triples where . The process can be reversed by setting , or
The equation can then be thought of as the homogeneous form of and it defines the same curve when restricted to the Euclidean plane. For example,the homogeneous form of the equation of the line is [12]
Line coordinates and duality
editThe equation of a line in the projective plane may be given as where , and are constants. Each triple determines a line, the line determined isunchanged if it is multiplied by a non-zero scalar, and at least one of , and must be non-zero. So thetriple may be taken to be homogeneous coordinates of a line in the projective plane,that isline coordinates as opposed to point coordinates. If in the letters , and are taken as variables and , and are taken as constants then the equation becomes an equation of a set of lines in the space ofall lines in the plane. Geometrically it represents the set of lines that pass through the point and may be interpreted as the equation of the point in line-coordinates. In the same way, planes in 3-space maybe given sets of four homogeneous coordinates, and so on for higher dimensions.[13]
The same relation, , may be regarded as either the equation of a line or theequation of a point. In general, there is no difference either algebraically or logically between homogeneouscoordinates of points and lines. So plane geometry with points as the fundamental elements and plane geometry with linesas the fundamental elements are equivalent except for interpretation. This leads to the concept of duality inprojective geometry, the principle that the roles of points and lines can be interchanged in a theorem in projectivegeometry and the result will also be a theorem. Analogously, the theory of points in projective 3-space is dual to thetheory of planes in projective 3-space, and so on for higher dimensions.[14]
Plücker coordinates
editAssigning coordinates to lines in projective 3-space is more complicated since it would seem that a total of 8coordinates, either the coordinates of two points which lie on the line or two planes whose intersection is the line,are required. A useful method, due toJulius Plücker, creates a set of six coordinates as the determinants from the homogeneous coordinates of two points and on the line. ThePlücker embedding is the generalization of this to create homogeneous coordinates of elements of any dimension in a projective space of dimension .[15][16]
Circular points
editThe homogeneous form for the equation of a circle in the real or complex projective plane is . The intersection ofthis curve with the line at infinity can be found by setting . This produces the equation which has two solutions over the complex numbers, giving rise tothe points with homogeneous coordinates and in the complex projectiveplane. These points are called thecircular points at infinity and can be regarded as the common points ofintersection of all circles. This can be generalized to curves of higher order ascircular algebraic curves.[17]
Change of coordinate systems
editJust as the selection of axes in the Cartesian coordinate system is somewhat arbitrary, the selection of a single system of homogeneous coordinates out of all possible systems is somewhat arbitrary. Therefore, it is useful to know how the different systems are related to each other.
Let ) be homogeneous coordinates of a point in the projective plane. A fixed matrix with nonzerodeterminant, defines a new system of coordinates by the equation Multiplication of by a scalar results in the multiplication of by the same scalar, and , and cannot be all unless , and are all zero since is nonsingular. So are a new system of homogeneous coordinates for the same point of the projective plane.
Barycentric coordinates
editMöbius's original formulation of homogeneous coordinates specified the position of a point as thecenter of mass (or barycenter) of a system of three point masses placed at the vertices of a fixed triangle. Points within the triangle are represented by positive masses and points outside the triangle are represented by allowing negative masses. Multiplying the masses in the system by a scalar does not affect the center of mass, so this is a special case of a system of homogeneous coordinates.
Trilinear coordinates
editLet , and be three lines in the plane and define a set of coordinates , and of a point as the signed distances from to these three lines. These are called thetrilinear coordinates of with respect to the triangle whose vertices are the pairwise intersections of the lines. Strictly speaking these are nothomogeneous, since the values of , and are determined exactly, not just up to proportionality. There isa linear relationship between them however, so these coordinates can be made homogeneous by allowing multiples of to represent the same point. More generally, , and can be defined asconstants , and times the distances to , and , resulting in a different system ofhomogeneous coordinates with the same triangle of reference. This is, in fact, the most general type of system ofhomogeneous coordinates for points in the plane if none of the lines is the line at infinity.[18]
Use in computer graphics and computer vision
editHomogeneous coordinates are ubiquitous in computer graphics because they allow common vector operations such astranslation,rotation,scaling andperspective projection to be represented as a matrix by which the vector is multiplied. By the chain rule, any sequence of such operations can be multiplied out into a single matrix, allowing simple and efficient processing. By contrast, using Cartesian coordinates, translations and perspective projection cannot be expressed as matrix multiplications, though other operations can. ModernOpenGL andDirect3Dgraphics cards take advantage of homogeneous coordinates to implement avertex shader efficiently usingvector processors with 4-element registers.[19][20]
For example, in perspective projection, a position in space is associated with the line from it to a fixed point calledthecenter of projection. The point is then mapped to a plane by finding the point of intersection of that plane andthe line. This produces an accurate representation of how a three-dimensional object appears to the eye. In the simplestsituation, the center of projection is the origin and points are mapped to the plane , working forthe moment in Cartesian coordinates. For a given point in space, , the point where theline and the plane intersect is . Dropping the now superfluous coordinate,this becomes . In homogeneous coordinates, the point is represented by and the point it maps to on the plane isrepresented by , so projection can be represented in matrix form as Matrices representing other geometric transformations can be combined with this and each other by matrix multiplication.As a result, any perspective projection of space can be represented as a single matrix.[21][22]
Notes
edit- ^August Ferdinand Möbius:Der barycentrische Calcul, Verlag von Johann Ambrosius Barth, Leipzig, 1827.
- ^O'Connor, John J.;Robertson, Edmund F.,"August Ferdinand Möbius",MacTutor History of Mathematics Archive,University of St Andrews
- ^Smith, David Eugene (1906).History of Modern Mathematics. J. Wiley & Sons. p. 53.
- ^Igoe, Kevin; McGrew, David; Salter, Margaret (February 2011)."Fundamental Elliptic Curve Cryptography Algorithms".
- ^For the section:Jones 1912, pp. 120–122
- ^Woods 1922
- ^Garner 1981
- ^Miranda 1995
- ^Bôcher 1907, pp. 13–14
- ^Garner 1981, pp. 32–33
- ^For the section:Cox, Little & O'Shea 2007, pp. 360–362
- ^For the section:Miranda 1995, p. 14 andJones 1912, p. 120
- ^Bôcher 1907, pp. 107–108 (adapted to the plane according to the footnote on p. 108)
- ^Woods 1922, pp. 2, 40
- ^Wilczynski 1906, p. 50
- ^Bôcher 1907, p. 110
- ^Jones 1912, p. 204
- ^Jones 1912, pp. 452 ff
- ^"Viewports and Clipping (Direct3D 9) (Windows)".msdn.microsoft.com. Retrieved10 April 2018.
- ^Shreiner, Dave; Woo, Mason; Neider, Jackie; Davis, Tom; "OpenGL Programming Guide", 4th Edition,ISBN 978-0-321-17348-5, published December 2004. Page 38 and Appendix F (pp. 697-702) Discuss howOpenGL uses homogeneous coordinates in its rendering pipeline. Page 2 indicates that OpenGL is a software interface tographics hardware.
- ^Mortenson, Michael E. (1999).Mathematics for Computer Graphics Applications. Industrial Press Inc. p. 318.ISBN 0-8311-3111-X.
- ^McConnell, Jeffrey J. (2006).Computer Graphics: Theory into Practice. Jones & Bartlett Learning. p. 120.ISBN 0-7637-2250-2.
References
edit- Bôcher, Maxime (1907).Introduction to Higher Algebra. Macmillan. pp. 11ff.
- Briot, Charles; Bouquet, Jean Claude (1896).Elements of Analytical Geometry of Two Dimensions. trans. J.H. Boyd. Werner school book company. p. 380.
- Cox, David A.; Little, John B.; O'Shea, Donal (2007).Ideals, Varieties, and Algorithms. Springer. p. 357.ISBN 978-0-387-35650-1.
- Garner, Lynn E. (1981),An Outline of Projective Geometry, North Holland,ISBN 0-444-00423-8
- Jones, Alfred Clement (1912).An Introduction to Algebraical Geometry. Clarendon.
- Miranda, Rick (1995).Algebraic Curves and Riemann Surfaces. AMS Bookstore. p. 13.ISBN 0-8218-0268-2.
- Wilczynski, Ernest Julius (1906).Projective Differential Geometry of Curves and Ruled Surfaces. B.G. Teubner.
- Woods, Frederick S. (1922).Higher Geometry. Ginn and Co. pp. 27ff.
Further reading
edit- Stillwell, John (2002).Mathematics and its History. Springer. pp. 134ff.ISBN 0-387-95336-1.
- Rogers, David F. (1976).Mathematical elements for computer graphics. McGraw Hill.ISBN 0070535272.
External links
edit- Jules Bloomenthal and Jon Rokne, Homogeneous coordinates[1]Archived 2021-02-26 at theWayback Machine
- Ching-Kuang Shene, Homogeneous coordinates[2]
- Wolfram MathWorld