
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























Homogeneous Coordinates
Can we find a way to eliminate the matrix addition associated with translation? Yes, we can. But for that M 1 will have to be rewritten as a 3x3 matrix and also the coordinate positions will have to be expressed as a homogeneous coordinate triple: (x, y) as (xh, yh, h) where xh yh x = –––– , y = –––– h h
For simplicity, 1 is used as value for h in affine transformations, thus (x, y) has homogeneous coordinates as (x, y, 1)
The rotation can now be expressed using homogeneous coordinates as:
Abbreviated as: P’ = R (θ). P
1
. 0 0 1
sin cos 0
cos sin 0
1
'
' y
x y
x
Rotation with Homogeneous Coordinates
The scaling can now be expressed using homogeneous coordinates as:
Abbreviated as: P’ = S (Sx, Sy). P
1
. 0 0 1
0 0
0 0
1
'
' y
x S
S y
x y
x
Scaling with Homogeneous Coordinates
Which means that T(tx2,ty2). T(tx1,ty1) = T(tx1 + tx2 , ty1 + ty2) hence
1
. 0 0 1
0 1
1 0
1
'
' 1 2
1 2 y
x t t
t t y
x y y
x x
Composite Translations
Two successive Rotations applied to a point P produce: P’ = R(θ 2 ). {R(θ 1 ). P} = {R(θ 2 ). R(θ 1 )}. P But since, R(θ 2 ). R(θ 1 ) = R(θ 1 + θ 2 ) Therefore, P’ = R(θ 1 + θ 2 ). P
Composite Rotations
General Pivot Point Rotation
General Fixed Point Scaling
General Composite Transformations and Computational Efficiency
Translations-Rotations-Scalings
1
. 1 0 0 1
'
' y
x rs rs trs
rs rs trs y
x
yx yy y
xx xy x