draw-point man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

DRAW-POINT(2)							 DRAW-POINT(2)

NAME
       Point - coordinate position

SYNOPSIS
       include	  "draw.m";
       draw := load Draw Draw->PATH;

       Point: adt
       {
	   x:	 int;
	   y:	 int;

	   add:	 fn(p: self Point, q: Point):  Point;
	   sub:	 fn(p: self Point, q: Point):  Point;
	   mul:	 fn(p: self Point, i: int):    Point;
	   div:	 fn(p: self Point, i: int):    Point;
	   eq:	 fn(p: self Point, q: Point):  int;
	   in:	 fn(p: self Point, r: Rect):   int;
       };

DESCRIPTION
       The Point data type specifies a position in the integer grid.

       x, y	 The  coordinate  position.  The  coordinates  increase to the
		 right (x) and down (y).

       p.add(q)	 Returns the point (p.x+q.x, p.y+q.y).

       p.sub(q)	 Returns the point (p.x-q.x, p.y-q.y).

       p.mul(i)	 Returns the point (p.x*i, p.y*i).

       p.div(i)	 Returns the point (p.x/i, p.y/i).

       p.eq(q)	 Returns non-zero if the points'  coordinates  are  equal  and
		 zero otherwise.

       p.in(r)	 Returns  non-zero if point p lies within rectangle r and zero
		 otherwise.

SEE ALSO
       draw-intro(2), draw-rect(2)

								 DRAW-POINT(2)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net