Which raster locations would be chosen by Bresenham’s algorithm when scan converting a line from (1, 1) to (8, 5)?
Explanation: Option A and B are not ending at (8, 5) and in option D there is increment of two, which is invalid. Only option C is reaching to (8, 5).
For more information Refer:Bresenham’s Line Generation Algorithm
Option (C) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.