Unit 3 Transformation
Unit 3 Transformation
Shubhangi Krishna
TRANSFORMATION
Transformation means changing some graphics by
applying rules.
All graphics systems allow the programmer to define
picture that include a variety of transformation.
For example, the programmer is able to magnify the
picture so that it appears clearly, reduce it, to make it
visible or rotate it so that it can be seen in different angles.
We can have various types of transformations such as
translation, scaling up or down, rotation, shearing, etc.
When a transformation takes place on a 2D plane, it is
called 2D transformation.
2 D TRANSFORMATION
There are three types of transformations :
Translation
Rotation
Scaling
TRANSLATION
It is a process of repositioning of an object, in a straight
line path from one co-ordinate location to another.
We can translate a two dimensional point by adding
translation distances, tx and ty to the original coordinate
position (x,y) to move the point to a new position (x’,y’):
x’=x + tx
y’= y + ty
The pair (tx, ty) is called the translation vector or shift
vector. The above equations can also be represented
using the column vectors.