Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

COMPUTER GRAPHICS

Sample Problems
1. A pyramid has coordinates A(0,0) , B(2,0), C(2,2) and D(0,2). Translate
the pyramid for translation vector (4,-1). Find the new coordinates.
2. Perform 90 degree rotation of triangle A(0,0), B(3,3), C(8,2) about
origin.
3. A triangle ABC has coordinates A(2,2), B(4,4) and C(6,2). Apply uniform
scaling with scaling factor 2 and find new coordinates of triangle.
4. A triangle ABC has coordinates A(-2,-3), B(-6,-3), C(-4,-6). Apply inverse
translation with translation vector (-8,-8). Find new coordinates.
5. A square has coordinates A(12,12),B(16,12), C(16,16) and D(12,16).
Apply inverse rotation of 45 degree about origin.
6. A triangle xyz has coordinates x(2,3) , y(6,3), z(4,6). Apply scaling in
inverse with scaling factors (sx,sy)=(1/2,2). Find new coordinates of
triangle.
7. A triangle has coordinates A(5,8), B(8,8), C(7,4). It is first moved using
vector (2,1) and then using vector (-3,4). Find the final position of
triangle.
8. A triangle has coordinates X(-3,-4), Y(-6,-4), and Z-5,-7). It is first moved
-3 in x-direction and -4 in y direction. Then again it is moved -2 in y
direction and +1 in x-direction. Finally it is moved -1 in y direction and
+4 in x direction. Find the transformation matrix and final coordinates
of triangle.
9. A square has coordinates A(30,40), B(80,40), C(80,90) and D(30,90). It
is first rotated 120 degree clockwise. Then it is rotated 45 degree and
finally it is rotated again by 30 degree. Find new position of square.
10. A pyramid with coordinates A(3,4), B(7,5), C(5,8), D(9,9) and
E(8,10) is rotated clockwise and then rotated 135 degree in counter
clockwise direction. Find new coordinates of pyramid.
11. A triangle has coordinates A(1,1), B(3,1), C(2,2). It si first scaled
by 2 in x-direction and 3 in y-direction. Then again it is scaled by 2 in y-
direction and 4 in x-direction. Find its final position.
12. A polygon has coordinates A(5,6), B(7,8), C(6,7). It is first scaled
uniformly by 1/2 and then it is scaled by -2 in x direction and -4 in y-
direction. Find the transformation matrix and new position of polygon.
13. A triangle ABC has coordinates A(2,2) B(4,4) C(6,2).The triangle is
first rotated by 90 degree about origin and then scaled by 3 in x-
direction and finally shifted by 2 in y-direction. Derive resulting
transformation matrix which perform above operation. Using this
matrix find new coordinates of triangle.
14. Derive the matrix after applying translation, two successive
rotations and two successive scaling.
15. Perform 9 degree rotation of a triangle A(0,0) b(3,3) C(8,2) about
pivot point P(-2,-2).
16. A polygon has coordinates A(4,3) B(5,7) C(9,6) D(4,8). It is scaled
uniformally by 3 and then rotated by 9 degree about the point B. Find
the resulting matrix & new coordinates of triangle.
17. A triangle with coordinates A(1,1) B(3,3) C(6,2) is scaled by 2 in x-
direction & ½ in y-direction about the point (4,5). Find its new
coordinates.
18. A triangle with coordinates A(2,3) B(8,3) C(5,7) is shifted by 3 in
y-direction and then scaled by 2 in x direction about pivot point
(4,6).Find new coordinates of triangle.
19. A triangle ABC has coordinates A(2,) B(4,4) C(6,2). It is rotated by
90 degree about the point C. Then it is shifted by 10 in y-direction and 5
in x direction. Finally it is scaled by 2 in y-direction & 3 in x-direction
about A. Find resulting matrix and final coordinates of triangle.
20. A triangle has coordinates A(2,2) B(4,4) C(6,2). The triangle is
first rotated by 90 degree about the point A and then scaled by 3 in x-
direction & shifted by 2 in y-direction. Derive 3x3 matrix which
performs above operation. Find new coordinates of triangle.

You might also like