Public Member Functions

Detailed Description

Class to implement the Bresenham line-drawing algorithm.

This object does not draw directly into an image, it simply outputs the set of image co-ordinates that should be visited to draw a line in a certain direction. Pixels are generated in a 4-connected sense (i.e. there are no diagonal steps--each step is either horizontal or vertical) details of the algorithm. See also Brezenham8.