Recall: Bresenham’s Line‐Drawing Algorithm
Problem: Given endpoints (Ax, Ay) and (Bx, By) of line,
determine intervening pixels
First make two simplifying assumptions (remove later): (Ax < Bx) and (0 < m < 1)
Define
Width W = Bx – Ax Height H = By ‐ Ay ( Bx,By) ( Ax,Ay) H W