Question: Two (2) lines are to be drawn using a raster algorithm. The first line L1 is between points A= (1,1) and B=(5,4) and the second

 Two (2) lines are to be drawn using a raster algorithm.

Two (2) lines are to be drawn using a raster algorithm. The first line L1 is between points A= (1,1) and B=(5,4) and the second line L2 is between points C=(2,3) and D=(6,4). a) Use Bresenham's algorithm to draw the line L1 between A and B. List the pixel coordinates (x,y) of the five (5) points of the line segment, and show all working. (5 marks) b) Use Bresenham's algorithm to draw the line L2 between C and D. List the pixel coordinates (x,y) of the five (5) points of the line segment, and show all working. (5 marks) c) Where do L1 and L2 intersect? (2 marks) d) Calculate the distance between this raster intersection point and the true geometric intersection point. (4 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!