Rectangle Methods

Rectangle(point1, point2)
Constructs a rectangle having opposite corners at point1 and point2.
getCenter()
Returns a clone of the center point of the rectangle.
getP1(), getP2()
Returns a clone of corner points originally used to construct the rectangle.



John Zelle 2010-08-29