šŸ”
Consider a line AB with A = (0,0) and B = (8, 4). Apply a simple DDA algorithm and compute the first four plots on this line. (1) [(0, 0), (1, 1), (2, 1), (3, 2)] (2) [(0, 0), (1, 1.5), (2, 2), (3, 3)]Ā (3) [(0, 0), (1, 1), (2, 2.5), (3, 3)] (4) [(0, 0), (1, 2), (2, 2), (3, 2)]
0 like 0 dislike

1 Answer

[(0, 0), (1, 1), (2, 1), (3, 2)]Ā 
0 like 0 dislike

Related questions

Consider the line from (0,0) to (4,6). Use the simple DDA algorithm to rasterize this line.

View solution
0 like 0 dislike
0 answers

Let R be the rectangular window against which the lines are to be clipped using 2D Sutherland-Cohen line clipping algorithm. The rectangular window has lower left-hand corner at (-5,1) and upper righthand corner at (3,7). ... s) is/are candidate for clipping? (A) AB (B) CD (C) EF (D) AB and CD
Answer : (D) AB and CD...

View solution
0 like 0 dislike
1 answer

Consider the reference string 0 1 2 3 0 1 4 0 1 2 3 4 If FIFO page replacement algorithm is used, then the number of page faults with three page frames and four page frames are .......... and ........... respectively. (A) 10, 9 (B) 9, 9 (C) 10, 10 (D) 9, 10
Answer : (D) 9, 10...

View solution
0 like 0 dislike
1 answer

Consider a window bounded by the lines : x = 0; y= 0; x = 5 and y = 3. The line segment joining (ā€“1, 0) and (4, 5), if clipped against this window will connect the points (A) (0, 1) and (2, 3) (B) (0, 1) and (3, 3) (C) (0, 1) and (4, 3) (D) (0, 1) and (3, 2)
Answer : (A) (0, 1) and (2, 3)...

View solution
0 like 0 dislike
1 answer

Below are the few steps given for scan-converting a circle using Bresenham's Algorithm. Which of the given steps is not correct? (1) Compute d = 3 ā€“ 2r (where r is radius) (2) Stop if x> y (3) If d
Answer : If dā‰„0,then d=4 *(x-y)+10, x=x+1 and y=y+1...

View solution
0 like 0 dislike
1 answer

50.5k questions

47.1k answers

240 comments

7.0k users