Geometric Transformation
Geometric Transformation
Md Rakibul Haque
Lecturer, CSE , RUET.
Geometric Transformation vs Coordinate Transformation
Translation Scaling
Rotation
Translation
Translation Example
Translating a object
by (3,-4)
Translation Properties
❑ No shape changes
❑ Shifting
Scaling
Scaling Example
Scaled by ½ in X and ¼ in Y
Scaling Types
Rotation by 45
Degree
Reflection
(x, y) (x, y, w)
P P’ P’’
Rotate about any arbitrary point
Rotate about any arbitrary point
Scale about any arbitrary point
Scale and Rotate about any arbitrary point
Order of Operations
Problems Related to 2D Transformation
Problems Related to 2D Transformation
Problems Related to 2D Transformation
Write the general form of a scaling matrix with respect to a fixed point P(h, k).
Magnify the triangle with vertices A (0, 0), B(1, 1), and C(5,2) to twice its size
Reflect the diamond-shaped polygon whose vertices are A(-1, 0), B(0, -2), C(1, 0), and D(0, 2) about (a)
the horizontal line y = 2, (b) the vertical line x = 2, and (c) the line y = x + 2.
3D Transformation- Translation
3D Transformation- Scaling
3D Transformation- Rotation
3D Transformation- Rotation
3D Transformation- Rotation
3D Transformation- Rotation
3DVISULIZATION
https://hal.bim.msu.edu/CMEonLine/AxisReferenceSystems/AxisSystems/rota
tion.html
https://www.geogebra.org/m/kb4vcwuk?fbclid=IwAR0KeOwxPwgJkc_uMJh0
yOfM1tZIvv08NvoJhoqH6LQvfOzMhoFAyDPZJio
Tilting
Define tilting as a rotation about the x axis followed by a rotation about the y axis: (a) find the
tilting matrix; (b) does the order of performing the rotation matter?
Tilting
Tilting
Tilting
.
Tilting
.
Tilting
Tilting
Math Problems
Math Problems
▪
c a
T
o
b
h
o
o
e
r
u
p
d
t
y
i
t
n
r
h
a
a
e
m
t
e
l
i
s
i
n
d
o
e
d
f
L
e
t
h
t
h
e
n
fi
a
e
r
t
d
o
h
t
b
a
a
Math Problems
t
y
s
e
t
t
d
h
h
e
e
fi
g
d
c
u
o
i
r
r
o
e
e
r
c
.
d
t
i
i
o
n
n
a
t
V
e
s
=
,
A
J
+
(
0
K
,
0
a
n
,
d
0
)
p
,
a
B
s
(
1
s
,
i
n
0
g
,
0
t
h
)
r
,
o
C
u
(
0
g
h
,
1
p
,
o
0
i
)
n
,
t
a
C
n
d
(
0
D
,
1
(
,
0
0
,
)
0
(
,
F
1
i
)
g
i
.
s
6
r
-
o
6
t
)
a
.
t
F
e
i
d
n
d
4
5
t
h
°
e
Math Problems
▪ The pyramid denned by the coordinates ,A(0, 0, 0), B(1, 0, 0), C(0, 1, 0), and D(0, 0, 1) is rotated 45°
about the line L that has the direction V = J + K and passing through point C(0, 1, 0) (Fig. 6-6). Find the
coordinates of the rotated figure.
Math Problems
Math Problems
Find the transformation for mirror reflection with respect to the xy plane..
Math Problems
Find the transformation for mirror reflection with respect to a given plane
Math Problems
Find the matrix for mirror reflection with respect to the plane passing through the origin and
having a normal vector whose direction is N = I + J + K
Math Problems
References
Chapter 5
▪ Computer Graphics Principle and Practice (Foley)
Chapter 4
▪ Computer Graphics (Schaum’)