0% found this document useful (0 votes)
2 views

Geometric Transformation

The document discusses geometric transformations, including translation, scaling, rotation, and reflection, highlighting their properties and examples. It also covers homogeneous coordinates and the application of transformations in both 2D and 3D contexts, along with related mathematical problems. Additionally, it references key literature in computer graphics for further reading.

Uploaded by

050 Tanvir Ahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Geometric Transformation

The document discusses geometric transformations, including translation, scaling, rotation, and reflection, highlighting their properties and examples. It also covers homogeneous coordinates and the application of transformations in both 2D and 3D contexts, along with related mathematical problems. Additionally, it references key literature in computer graphics for further reading.

Uploaded by

050 Tanvir Ahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

Geometric Transformation

Md Rakibul Haque
Lecturer, CSE , RUET.
Geometric Transformation vs Coordinate Transformation

Geometric Transformation Coordinate Transformation

The objects moves The Co-ordinate


while the system is moved
co-ordinate systems while the object
remain stationary. remains fixed
Geometric 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

▪ Differential Scaling, when Sx ≠ Sy

▪ Uniform Scaling, when Sx= Sy

▪ If Si >1, then zooming, where i=x,y

▪ If Si <1, then shrinking, where i= x,y

▪ If Si=1, then same, where i= x,y


Rotation
Rotation Example

Rotation by 45
Degree
Reflection

Special type of Scaling


Reflection

Special type of Scaling


Homogeneous Coordinates

(x, y) (x’, y’, w)

(2,3,6) and (4,6,12) are the same in homogeneous coordinates.

(x’, y’, w) (x’/w, y’/w, 1) (x’/w, y’/w)


Homogeneous Coordinates

(x, y) (x, y, w)

(2,3,6) and (4,6,12) are the same in homogeneous coordinates.

(x, y, w) (x/w, y/w, 1) (x/w, y/w)


Translation Scaling and Rotation in Homogeneous Coordinates
Double Translation

(dx1, dy1) (dx2, dy2)


P P’ P’’
Double Translation
Double Scaling

(Sx1, Sy1) (Sx2, Sy2)


P P’ P’’
Double Scaling
Double Rotation

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

while keeping C(5,2)fixed.


Problems Related to 2D Transformation
Problems Related to 2D Transformation

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

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’)

You might also like