Homogenous Coordinates
Homogenous Coordinates
We can effectively condense the above basic matrix transformations in simple eqatn such as:
P = M.P + M2;
M : Matrix for multiplication and scaling
M2 : Matrix for translation
-
For only translation using above equation we have to assign the M matrix as an identity matrix..
For only rotation using above equation we have to assign the matrix M2 as null matrix..
Thus from above conditions we can incur that for carrying out sequence of transformations we
have to assign different values and the equations change every time..
Thus in order to condense the above equation and simplify the above calculation we can use the
3 by 3matrix instead of the traditional 2 by 2 matrix..
Y=
We can input any nonzero value of h ..Here in 2-D transformations we consider h=1..
But in certain 3-D transformations this h can take values other than 1..
Homogenous coordinates are the ones which can be factored out of the equation ..this is the
definition in mathematics ..
Using above 3by3 matrix for translation,
1
= [ 0
0
1
Rotation :
0
1 ]*[ ] ;
1
0 1
() () 0
= [ () () 0 ]*[ ] ;
1
1
0
0
1
Scaling :
= [ 0
0
1
0
0 ]*[ ] ;
1
1