4007 - Computer Graphics Lab Quiz Questions

1
4007 - Computer Graphics II nd 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 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). 8 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 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). 10

description

4007 - Computer Graphics Lab Quiz Questions

Transcript of 4007 - Computer Graphics Lab Quiz Questions

Page 1: 4007 - Computer Graphics Lab Quiz Questions

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 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). 8

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 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). 10