ABOUT TRANSFORMATION Flashcards
What is transformation
Transformation is a process of modifying and re-positioning the existing graphics.
Give a more elaborate definition on Transformation
The process of using computers for drawing by
providing facility to user to view the object from
different angles, enlarging
or reducing the scale or shape of object is called Transformation
What are the transformation techniques
- Translation
- Rotating
- Scaling
- Reflection
- Shear
What is 2D translation
2D Translation is a process of moving an object from one position to another in a two dimensional plane.
What is the formular of 2D translation
Xnew = Xold + tx
Ynew = Yold + tx
What is 2D Rotation
2D Rotation is a process of rotating an object with respect to an angle in a two dimensional plane
what is the formular of 2D rotation
Xnew = Xold x cosθ – Yold x sinθ
Ynew = Xold x sinθ + Yold x cosθ
What is 2D scaling
In computer graphics, scaling is a process of modifying or altering the
size of objects
What is the formular of 2D scaling
Xnew = Xold x Sx
Ynew = Yold x Sy
What is 2D reflection
Reflection is a kind of rotation where the angle of rotation is 180
degree.
*The reflected object is always formed on the other side of mirror.
*The size of reflected object is same as the size of original object
What is the formular for 2D reflection on x-axis
xnew = xold
ynew = -yold
What is the formular for 2D reflection on y-axis
x-new = -xold
ynew = ynew
What is 2D shearing
In Computer graphics, 2D Shearing is an ideal technique to change
the shape of an existing object in a two dimensional plane
What is the 2d shearing formula on the x-axis
*Xnew = Xold + Shx x Yold
*Ynew = Yold
What is the 2d shearing formula on the y-axis
*Xnew = Xold
*Ynew = Yold + Shy x Xold