2D Transformations
Definition: 2D Transformation modifies
the coordinates of object to change the orientation, size or shape of the
object.
In 2D (2- Dimensional) transformation
we are using two axes i.e. X- axis and
Y-axis to represent object. Any point on 2D plane is represented as A (x1, y1)
where x1 is distance from origin on X-axis and y1 is distance from origin.as
shown in figure below.
Different 2D Transformations:
a. Translation: Changing
position of object from one place to other.
b. Rotation: Angular displacement of object with
some angle (ϴ)
c. Scaling:
Increasing or
decreasing size of object.
d. Reflection: Mirror image of the object.
e. Shear:
Deformation/Slanting
in the shape of the object.
2D transformations can be broadly divided into Active and Passive type of Transformations.Those transformations are called active in which shape of object changed. In passive transformation shape of object will remain unchanged after operation.
Scaling and Shear are active 2D transformations while Translation, Rotation and Reflection are passive 2D transformations.