19-12-2012, 06:26 PM
2D TRANSFORMATION
2D TRANSFORMATION.docx (Size: 15.09 KB / Downloads: 24)
ALGORITHM
1. Start the program.
2. Declare the variables and detect the graph variables.
3. Draw the polygon and transform the image from the original image using the array.
4. Using for loop get the polygon variables.
5. Whether the function of the menu () is less than and construct the polygon in different manner by using SWITCH statement.
6. In case 1, transform the polygon by given input length from the original image.
7. In case 2, rotate the polygon using the given angle and looping statement from the original image.
8. In case 3,to scale the polygon from the original image by given input.
9. Menu () function give the menu options.
10. Stop the program.