Lecture6 CG 04 2D Transformations 2021#1 Updated
Lecture6 CG 04 2D Transformations 2021#1 Updated
Chapter_4
2D Transformations
Lecture #1
1
Translation
2
Translation is an operation that displaces points by a
fixed distance in a given direction.
𝑥 ′ = 𝒙 + 𝒕𝒙
𝑦 ′ = 𝒚 + 𝒕𝒚
6
A straight Line segment is translated by applying
the transformation equation to each of the line
endpoints and redrawing the line between the
new endpoint positions.
𝑥′ 1 0 𝒕𝒙 𝑥
For Translation. we have: 𝑦 ′ = 0 1 𝒕𝒚 𝑦
1 0 0 1 1 9
The translation matrix can be written in the
abbreviated form:
𝑷′ = 𝑻 𝒕𝒙 , 𝒕𝒚 . 𝑷
11
A two-dimensional rotation is applied to an
object by repositioning it along a circular path in
the xy plane.
13
Two-dimensional rotation.
14
Having specified a particular point—the origin—we
are in a particular frame.
For Rotation:
𝑥′ cos 𝜃 − sin 𝜃 𝟎 𝑥
we have: 𝑦 ′ = sin 𝜃 cos 𝜃 𝟎 𝑦
1 0 0 1 1
18
The rotation matrix can be written in the
abbreviated form:
𝑷′ = 𝑹 𝜽 . 𝑷
19