(x0, y0) = (14,-5), (Xend, Yend) = (95,74)
Question 4 [4 marks] - DONE A line is drawn from point (x, y) to (xend, Yend) using Bresenham's line algorithm. Later on, it was decided to extend the line by 4 pixels. The updated ending point of the line is (xend, Yena) as shown in Figure Q4. Determine the coordinates of the pixels of the extended line i.e., from (xend, Yena) to (x'end, Yena).
Please choose only set of values from Table Q4 according to the rightmost digit of your student number. For example, if your student number is 12345678, its rightmost digit is 8. In this case, you should choose (xo, yo)=(32, 21), and (xend, yend) = (64, 52) Yend.
(xend,Yena) (xo,Yo) Figure Q4
The rightmost digit of your student number 0 1 2 3 4 5 6 7 8 9
(xo,yo) (xend,Yend)
(10, 20) (-5, 20) (14, -5) (-40, -15) -1,-10 (21, 15) (7, 21) (-11, 10) (32, 21) (-62, -25)
(66, 67) (66, 87) (95, 74) (25, 44) (65, 40) (78, 32) (105, 62) (50, 55) (64, 52) (-12, -2)
Table Q4