4007 - Computer Graphics IInd Lab Quiz - Question Set

Q. No.

Question

1 WAP for rotation of a point (2, -4) about a point P (1, 1) by 90째 counter-clockwise. 6

2 WAP to magnify the triangle with vertices A (0, 0), B (1, 1) and C (-1, -1) to twice its size while keeping C (-1, -1) fixed. 7

3

8

WAP for clipping using Liang-Barsky algorithm if clipping window ABCD is specified as A (0, 0), B (40, 0), C (40, 40) and D (0, 40). Given line segments are PQ (-20, 70) to (20, 30) and RS (50, 10) to (70, 70).

4 WAP to perform a 45째 rotation of a triangle with vertices A (0, 0), B (1, 1) and C (5, 2) about the origin. 9

5

10

WAP for clipping using Cohan-Sutherland algorithm if clipping window ABCD is specified as A (0, 0), B (40, 0), C (40, 40) and D (0, 40). Given line segments are PQ (-20, 70) to (20, 30) and RS (50, 10) to (70, 70).