Package il.ac.idc.jdt
Class Circle
java.lang.Object
il.ac.idc.jdt.Circle
- All Implemented Interfaces:
Serializable
this class represents a simple circle.
it is used by the Delaunay Triangulation class.
note that this class is immutable.
it is used by the Delaunay Triangulation class.
note that this class is immutable.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Circle
Constructor.
Constructs a new Circle- Parameters:
c
- Center of the circle.r
- Radius of the circle.
-
Circle
Copy Constructor.
Creates a new Circle with same properties ofcirc
.- Parameters:
circ
- Circle to clone.
-
-
Method Details
-
toString
-
center
Gets the center of the circle.- Returns:
- the center of the circle.
-
radius
public double radius()Gets the radius of the circle.- Returns:
- the radius of the circle.
-
hashCode
public int hashCode() -
equals
-