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::Point Navigation: Up, Table of Contents, Index,

Points (ifm::Point)

ifm::Point p ( int x, int y);
Creates a point with Cartesian coordinates (x, y).

int p.x () Returns x-coordinate of p.
int p.y () Returns y-coordinate of p.

Example

The following code draws a point at coordinate (100, 100) and waits for a mouseclick to finish.

#include <IFM/window>

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

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