Points and Rectangles
The Co-ordinate System:
- Specify points with pt(x,y)
- Specify rectangles with rect(x,y,width,height)
- The co-ordinate (0,0) is at the top left of the window or drawing area:

Using Points and Rectangles:
- Find the rectangle of an object with r = getrect(obj)
- Inset a rectangle with rr = insetr(r,1)
- Add two points together using p = addpt(p1,p2)
- Find the mid-point with p = midpt(p1,p2)
- Center a rectangle on another with rr = rcenter(z,r)