Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Beauty of Bresenham's Algorithm. Parent comment
just:
{ x++ and y+=slope } or { y++ and x+= 1./slope }
Then slopes are always rational in line drawing algorithms.
just:
{ x++ and y+=slope } or { y++ and x+= 1./slope }
Then slopes are always rational in line drawing algorithms.