Indicate which raster locations would be chosen by Bersenham’s algorithm when scan converting a line from screen co-ordinates (1,1) to (8,5).
First the straight values (initial values) must be found
dx=x2-x1 8-1= 7
dy= y2-y1 5-1= 4
Therefore d=2dy-dx 2*4-7= 1 initial values
The answers are found to be.
Now the question is how did we got the "d" values. With step by step explanation.
If you implement Wiki's integer arithmetic algorithm e.g. with Pascal and replace the
plotbywritelnYou get the output