Professional Documents
Culture Documents
Animation-Lect 03 - 2D-Transformation-s
Animation-Lect 03 - 2D-Transformation-s
Animation-Lect 03 - 2D-Transformation-s
1 2D Geometric Transformations
Transformation is a process of modifying and re-
positioning the existing graphics.
Types of movements
1. Object transformation
2D transformation
3D transformation
Translate, scaling, rotation, reflection, shear
2. Camera transformation
3. Combination of object and camera
movements
Types of movements
2D transformations
1- 2D translation
x
y w=1
1
x
Matrix Representations and Homogeneous
Coordinates (cont.)
To produce a sequence of operations, such as
scaling followed by rotation then translation,
we could calculate the transformed
coordinates one step at a time
10
2-D Translation
Matrices allow arbitrary linear transformations to be displayed in a consistent format,
suitable for computation.
This also allows transformations to be composed easily (by multiplying their matrices).
2-D Translation
Problem-01:
Given a circle C with radius 10 and center coordinates (1, 4).
Apply the translation with distance 5 towards X axis and 1 towards Y
axis. Obtain the new coordinates of C without changing its radius.
Solution-
Old center coordinates of
C = (Xold, Yold) = (1, 4)
Translation vector = (Tx, Ty) = (5, 1)
Let the new center coordinates of
C = (Xnew, Ynew).
Applying the translation equations, we have-
Xnew = Xold + Tx = 1 + 5 = 6
Ynew = Yold + Ty = 4 + 1 = 5
Thus, New center coordinates of C = (6, 5).
Problem-02