Homogeneous Coordinates
- How to express the combination of some Affine transform
- Tough in Cartesian coordinates
- Simple in Homogeneous coordinates
- Homogeneous coordinates
- A point in a n0dimention space in express by n+1 components.
- The homogeneous coordinates (x, y, z, w) correspond to the 3D Cartesian coordinates (x/w, y/w, z/w).
- A point presented Homogeneous coordinates by corresponds to finite coordinates. E.g: (1,2,3,1), (2,4,6,2), and (3,6,9,3) are different homogeneous coordinates for the same Cartesian coordinates (1,2,3).
- In CG, the w-component of the homogeneous coordinates is used to distinguish between vectors and points.
- If w is 0, (x, y, z, w) represent a vector.
- Otherwise, a point.
Affine Transform in Homogeneous Coordinates
-
Translation is not linear transforms, and is represented as vector addition..
-
we can describe translation as matrix multiplication if we use the homogeneous coordinates.
-
The matrices for scaling and rotation should be extended into matrices.