Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

Reference Manual: ifm::Circle Navigation: Up, Table of Contents, Index,

Circles (ifm::Circle)

ifm::Circle c ( int x, int y, int r);
Creates a circle with center (x, y) and radius r.

int c.x () Returns center's x-coordinate.
int c.y () Returns center's y-coordinate.
int c.r () Returns radius of c.

Example

The following code draws a circle with center (100, 100) and radius 20. Then it waits for a mouseclick to finish.

#include <IFM/window>

int main()
{
    ifm::wio << ifm::Circle(100, 100, 20) << ifm::flush;
    ifm::wio.wait_for_mouse_click();
    return 0;
}

Next: Class declaration of ifm::FilledCircle
Navigation: Up, Table of Contents, Index,
Michael Hoffmann. Wed, November 17, 2004.