09-07-2013, 04:33 PM
WRITE A PROGRAM TO IMPLEMENT 2-D TRANSFORMATIONS
AIM:
Write a program to implement following 2D transformation
• Translation.
• Scaling.
• Rotation.
• Shearing.
OBJECTIVE:
Understand and Implement basic 2D transformations in Laboratory.
THEORY:
2D transformation:
Transformation allows us to uniformly alter the entire picture instead of drawing a new picture.
Transformation means translation, scaling, rotation, shearing or combination of all.
Translation:
Translation is applied to an object by repositioning it along a straight line path from one coordinate location to another. This can be easily done by adding to each point the amount by which we want to shift the point
PRACTICE ASSIGNMENTS:
1. Draw a house and perform all the transformations.
2. Draw a Car and perform all the transformations.
3. Draw a doll and perform rotation and translation.