CVD 0.8

Class to implement the Bresenham linedrawing algorithm. More...
#include <brezenham.h>
Public Member Functions  
Brezenham8 (TooN::Vector< 2 > dir)  
ImageRef  step () 
ImageRef  sideways () 
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 8connected sense (i.e. diagonal steps are possible). See also Brezenham.
Definition at line 61 of file brezenham.h.
CVD::Brezenham8::Brezenham8  (  TooN::Vector< 2 >  dir  ) 
Construct a linedrawing object.
dir  The (x,y) direction of the line 
ImageRef CVD::Brezenham8::sideways  (  )  [inline] 
Which compass position most orthogonal to the line's direction? At each pixel given by step() you are guaranteed to be able to walk in the direction given by sideways and not walk on the line.
Definition at line 74 of file brezenham.h.