Navigation:
Up
,
Table of Contents
,
Index
,
Points (
Point
)
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 <ifmwindow> int main() {
wio
<<
Point
(100, 100) << flush;
wio
.wait_for_mouse_click(); }
Next:
Class declaration of
Line
Navigation:
Up
,
Table of Contents
,
Index
,
Michael Hoffmann
. Mon, October 7, 2002.