Professional Documents
Culture Documents
Chapter_4
2D Transformations
Lecture #2
1
Scaling
2
▪ A scaling transformation alters the size of an object.
𝑥 ′ =𝑠𝑥 . 𝒙
𝑦 ′ = 𝑠𝑦 . 𝒚
4
▪ Scaling is a transformation by which we can make an
object bigger or smaller.
𝑠𝑥 = 𝒔𝒚 5
▪ Scaling is called non-uniform if:
𝑠𝑥 ≠ 𝒔𝒚
6
▪ Uniform scaling of a circle is done by simply adjusting
the radius. Then we redisplay the circle about the
center coordinates using the transformed radius.
7
▪ Expressing positions in homogeneous coordinates
allows us to represent all geometric transformation
equations as matrix multiplications.
𝑥′ 𝒔𝒙 0 𝟎 𝑥
▪ For Scaling. we have: 𝑦 ′ = 0 𝒔𝒚 𝟎 𝑦
1 0 0 1 1
8
▪ The Scaling matrix can be written in the
abbreviated form:
𝑷′ = 𝑺 𝒔𝒙 , 𝒔𝒚 . 𝑷
11
▪ Two successive rotation is:
cos(𝜃 + β) − sin(𝜃 + β) 𝟎
= sin(𝜃 + β) cos(𝜃 + β) 𝟎
0 0 1
12
Composite Transformations of Different Kinds
▪ Composite transformation of different kinds or simply
called Concatenation of Transformations.
14
1 0 𝒙𝒄 cos 𝜃 − sin 𝜃 𝟎 1 0 −𝒙𝒄
▪ 0 1 𝒚𝒄 sin 𝜃 cos 𝜃 𝟎 0 1 −𝒚𝒄
0 0 1 0 0 1 0 0 1
15
Reflection
16
▪ A reflection is a transformation that produces a mirror
image of an object.
𝑥′ 𝟏 0 𝟎 𝑥
matrix: 𝑦′ = 0 −𝟏 𝟎 𝑦
1 0 0 1 1
▪ This transformation keeps x values the same, but "flips"
18
the y values of coordinate positions.
Reflection about the x-axis
19
▪ Reflection about the y-axis (line x = 0):
𝑥′ −𝟏 0 𝟎 𝑥
𝑦′ = 0 𝟏 𝟎 𝑦
1 0 0 1 1
▪ This transformation keeps y values the same, but
"flips" the x values of coordinate positions.
20
Reflection about the y-axis
21