what is the difference between line with positive slope and line with negative slope while deriving bresenham's line algorithm?

i have derived bresenham's line algorithm for positve slope (L-R) and m<1.

how can i derive BLA for negative slope and m>1 or m<1.

1 Answer

  • roger
    Lv 7
    8 months ago

    If you  do not  want to do  negative  slope  reverse the  start and  end points.

Still have questions? Get answers by asking now.