Circle Methods

Circle(centerPoint, radius)
Constructs a circle with the given center point and radius.


Example: aCircle = Circle(Point(3,4), 10.5)

getCenter()
Returns a clone of the center point of the circle.


Example: centerPoint = aCircle.getCenter()

getRadius()
Returns the radius of the circle.


Example: radius = aCircle.getRadius()

getP1(), getP2()
Returns a clone of the corresponding corner of the circle's bounding box. These are opposite corner points of a square that circumscribes the circle.


Example: cornerPoint = aCircle.getP1()



zelle 2016-08-26