Disc = { x | x in R^2, |x-c|<=1 }

NAO/Disc.hand link against library
libNAOBase.aThe following constructors are provided:
| NADisc(xc ,yc ); | ||||||
| Create a Unit Disc in the plane. | ||||||
|
| NADisc(); |
| Create an NADisc. (default constructor). |
The following member functions are available in addition to those provided
by the abstract interface NARegion:
The test for inclusion in the Disc is simply:
isitinChart((x,y))= (x-xc)*(x-xc)+(y-yc)*(y-yc) <= 1
The Disc, unlike the Ball, has a boundary. The boundary is a unit circle with the same center as the Disc. The boundary is implemented as a class private to the Disc, of type "DiscBoundary".
#include<NAO/Disc.h> NAManifold *disc=new NADisc(1.,2.);
See also the Disc example in the Examples document.
Siblings of this class:
See also:
[Comments | NAO home page ]
[ IBM home page | Order | Privacy | ContactIBM | Legal ]