CS401 Computer Graphics
ASSIGNMENT 2
ASSIGNMENT QUESTIONS
Group 1: (Roll No 1 to 22 - Qns 1,2,3,5)
Group 2: (Roll No 23 to 44 -Qns 4,5,6,7)
Group 3: (Roll No 45 to 62– Qns 8,9,10,5)
1. Translate the square ABCD whose coordinate are A(0,0), B(3,0),C(3,3)and D(0,3) by 2 units in both directions
and then scale it by 1.5 units in x direction and 0.5 units in y direction.
2. Perform a 45o rotation of triangle A(0,0), B(1,1) , C(5,2)
a. About the origin
b. About the point P(-1,-1).
3. For the given Matrix
2 0 1 0
1 3 0 0
4 0 1 0
0 3 6 1
First apply a rotation of 45o about the y axis followed by a rotation of 45o about x axis.
4. Given a triangle A (20,10) B(80,20) C(50,70). Find the co-ordinates of vertices after each of the following
transformation. (a) Reflection about the line x=y.
(b) Rotation of the triangle ABC about vertex A in clockwise direction for an angle 90 degree.
5. Given a clipping window A (-20,-20), B(40,-20), C(40,30) and D(-20,30). Using Cohen Sutherland line clipping
algorithm, find the visible portion of the line segment joining the points P(-30,20) and Q(60,-10).
6. Derive the transformation matrix for perspective projection with the projection reference point at position Zprp
along the Zv axis and the view plane at Zvp. Write the perspective transformation equations
(i) if the view place is taken to be the uv plane
(ii) (ii) if the projection reference point is taken to be at the viewing co-ordinate origin.
7. Describe the transformation which reflects a 2-D object about a line L which has a y-intercept(0,b) and an angle
of intersection theta degree w.r.t. to the xaxis
8. Perform the following transformations on a point (6, 4).
i) Translate by tx = −2 and ty = 4
ii) then, Scale by sx = 2 and sy = 1
iii) and Rotate by 90 in clockwise direction. Determine the final coordinates
of the transformed point.
9. A rectangular parallelepiped is unit distance on Z-axis, 2 units on X-axis and 3 units on Y-axis. Determine the
new coordinates of the parallelepiped when it is rotated counter clockwise about X-axis by an angle of 45ο
10. Magnify the triangle with vertices A (0,0) B(1,1) and C)5,2) to twice its size while keeping C(5,2) fixed.