point - coordinate position — Inferno 1ed
point - coordinate position
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.|
Draw Module in Chapter 11
|
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.