Bresenham's line algorithm

Bresenham’s line algorithm is a line drawing algorithm that determines the points of an n-dimensional raster that should be selected in order to form a close approximation to a straight line between two points. - wikipedia / HN / pdf

see also

Written on April 13, 2021, Last update on December 30, 2022
math algorithm integer