Oval Methods

Oval(point1, point2)
Constructs an oval in the bounding box determined by point1 and point2.


Example: anOval = Oval(Point(1,2), Point(3,4))

getCenter()
Returns a clone of the point at the center of the oval.


Example: centerPoint = anOval.getCenter()

getP1(), getP2()
Returns a clone of the corresponding point used to construct the oval.


Example: cornerPoint = anOval.getP1()



zelle 2016-08-26