Scan conversion of lines
Given two points with integer coordinates p1 =[x1, y1], and p2 =[x2, y2] the algorithm has to find a sequence of pixels approximating the line.
We can always reorder p1 and p2 so that x2- x1
is nonnegative. It is convenient to look at only nonnegative slopes; if the slope is negative,