Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Math - Sequences - CircleIterC
 

  PUBLIC
CircleIterC::CircleIterC(int,Index2dC)
CircleIterC::First(void)
CircleIterC::IsElm(void) const
CircleIterC::operator bool(void) const
CircleIterC::Data(void) const
CircleIterC::operator *(void) const
CircleIterC::Next(void)
CircleIterC::operator ++(int)
CircleIterC::Dummy(void)

   CircleIterC   
 
Iterate around a circle.
 
include "Ravl/CircleIter.hh"
Created:08/02/1999 
Source file:Ravl/Math/Sequence/CircleIter.hh
User Level:Normal
Library:RavlMath
In Scope:RavlN

Comments:
NB. This does NOT move linearly around the circle, but through octants.

Variables:
int octant;
Current octant.

int radius;

int d;

int deltaE;

int deltaSE;

int x;

int y;

Index2dC offset;

Index2dC data;

Methods:
CircleIterC(int nradius = 1,Index2dC nOffset = Index2dC (0))
Constructor.

void First()
Goto first point on circle.

bool IsElm() const
At valid position ?

operator bool() const
At a valid position ?

const Index2dC & Data() const
Get point.
Largest error from radius should be less than 0.5

const Index2dC & operator *() const
Get current point.

bool Next()
Goto next point.
Returns true if we're now at a valid point.

bool operator ++(int)
Goto next point.
Returns true if we're now at a valid point.

void Dummy()



Maintainer:Charles Galambos, Created: 08/02/1999, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002