2D Transformations
2D Transformations
TRANSFORMATIONS
TOPICS:
1. INTRODUCTION
2. GEOMETRIC TRANSFORMATION
TRANSLATION
ROTATION ABOUT THE ORIGIN
SCALING WITH RESPECT TO THE ORIGIN
MIRROR REFLECTION ABOUT AN AXIS
3. INVERSE GEOMATRIC TRANSFORMATIONS
4. CO-ORDINATE TRANSFORMATIONS
TRANSLATION
ROTATION ABOUT THE ORIGIN
SCALING WITH RESPECT TO ORIGIN
MIRROR REFLECTION ABOUT AN AXIS
5. INVERESE COORDINATE TRANSFORMATION
6. COMPOSITE TRANFORMATIONS
7. GENERAL PIVOT POINT ROTATION
8. SHEAR TRANSFORMATION
INTRODUCTION
GEOMATRIC TRANSFORMATION:
Let us impose a coordinate system on a plane. An object qty in the plane can be consider
as a set of points. Every object point P has coordinates (x,y). if the object is moved to a
New position say qty, then its new coordinates P’ can be obtained from the original
points P by the application of the geometric transformation.
Translation:
If the displacement is given by the vector
V=tx I+ty J,
New point P’(x’,y’) can be found by applying transformation Tv to P(x,y)
P’ = Tv(P)
Where
X’=x+tx
Y’=y+ty
Matrix representation:
P’=Mx(P)
Where x’=x, y’=-y
Co-ordinate Transformation:
Suppose that we have two co-ordinate systems in the plane. The first system is
located at origin O and has co-ordinate axis XY. The second co-ordinate system is
located at origin O’ and has co-ordinate axis X’Y’.
Translation:
x’=x-tx
y’=y-ty
(x’,y’)=Tv’(x,y)
Rotation about the origin:
x’=rcos(Ø-θ)
y’=rsin(Ø-θ)
x=rcosθ
y=rsinθ
x’=xcosθ+ysinθ
y’=-sinθ+ycosθ
(x’,y’)=Rө’(x,y)
Scaling with respect to origin:
(x’,y’) =S’sx,sy(x,y)
Where x’=(1/sx)x and y’=(1/sy)y
Sx=2
Sy=1/2
Composite transformation:
More complex and geometric and co-ordinate transformation can be built
from the basic transformations by using the process of composite of functions.
Example:- Magnification of an object by keeping its center fixed. Let the
geometric center be located at C(h,k). S>1.
We construct the transformation by performing the following steps:
1. Translate the object so that its center coincides with origin.
2. Scale the object with respect to origin.
3. Translate the scaled object back to the original position.
Ss,c =Tv.Ss,s.Tv-1
Where v=hI+kJ
Notations:
1. Ssx,sy,p scaling with respect to a fixed point P.
2. Rө,p rotation with respect to a fixed point P.
3. Ml reflection about a line l
This is also known as concatenation of matrix.
We must be able to represent the basic transformations as 3*3 homogeneous co-ordinate
matrices so as to be compatible with the matrix of translation. For this we add third
T(Xr,Yr).R(θ).T(-Xr,-Yr) = R(Xr,Yr,θ)
Composite matrix resulting from the product of these 3 transformations:-