CVD 0.8

Class to implement the Bresenham linedrawing algorithm. More...
#include <brezenham.h>
Public Member Functions  
Brezenham (TooN::Vector< 2 > dir)  
ImageRef  step () 
Class to implement the Bresenham linedrawing algorithm.
This object does not draw directly into an image, it simply outputs the set of image coordinates that should be visited to draw a line in a certain direction. Pixels are generated in a 4connected sense (i.e. there are no diagonal stepseach step is either horizontal or vertical) details of the algorithm. See also Brezenham8.
Definition at line 37 of file brezenham.h.
CVD::Brezenham::Brezenham  (  TooN::Vector< 2 >  dir  ) 
Construct a linedrawing object.
dir  The (x,y) direction of the line 