Matrix in Computer Graphics
Matrix in Computer Graphics
Although triples of coordinates commonly display a point in space, here they represent
a point in the plane or 2D point. Two sets of homogeneous coordinates, ( 𝑥, 𝑦, 𝑤) and ( 𝑥
′, 𝑦′,𝑤′), represent the same point if one is a multiple of the other. For example,
coordinates (1,2,3) and (2,4,6) represent the same point. It can be concluded that one
point in homogeneous coordinates can be displayed in infinitely many ways, that is, one
whole class of triples of coordinates represents the same point in the plane.
This class of triples of coordinates which
represent one point in the plane (𝑡𝑥,𝑡𝑦,𝑡𝑤),
where 𝑡 ≠ 0, actually represents a line in the
3D space. It should be noted that at least one
homogeneous coordinate must be different
from zero, meaning that the point (0,0,0) is not
allowed. If the coordinate 𝑤 ≠ 0, each of them
can be divided by 𝑤𝑤, which is why the
point 𝑇 can be written as:
All such points form a plane with the equation 𝑤𝑤 = 1 in the 3D space. In
the case of 𝑤𝑤 = 0, it is a point in infinity, which will not be considered in
more detail.
The usage of homogeneous coordinates is of great importance in computer
graphics. Homogeneous coordinates provide a uniform mathematical tool
for all transformations, where matrix transformation through homogeneous
coordinates must be in the 3 × 3 form [8]. In that sense
homogeneous translation matrix becomes: homogeneous rotation matrix: