Algorithm
Development Kit 1.0

algs.model
Interface ICircle

All Known Implementing Classes:
TwoDCircle

public interface ICircle

A circle point has an IPoint origin and a radius >= 0.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman

Method Summary
 IRectangle boundingRectangle()
          return bounding rectangle for this circle.
 boolean equals(java.lang.Object o)
          Must properly compute equals(Object) to compare based origin and radius
 IPoint getOrigin()
          Return origin as an IPoint.
 double getRadius()
          return the radius of the circle.
 double getX()
          Return the x-coordinate value of the circle origin.
 double getY()
          Return the y-coordinate value of the circle origin.
 

Method Detail

getX

double getX()
Return the x-coordinate value of the circle origin.


getY

double getY()
Return the y-coordinate value of the circle origin.


getOrigin

IPoint getOrigin()
Return origin as an IPoint.


getRadius

double getRadius()
return the radius of the circle.


boundingRectangle

IRectangle boundingRectangle()
return bounding rectangle for this circle.


equals

boolean equals(java.lang.Object o)
Must properly compute equals(Object) to compare based origin and radius

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.