Package il.ac.idc.jdt
Class Circle
- java.lang.Object
-
- il.ac.idc.jdt.Circle
-
- All Implemented Interfaces:
Serializable
public class Circle extends Object implements Serializable
this class represents a simple circle.
it is used by the Delaunay Triangulation class.
note that this class is immutable.- See Also:
DelaunayTriangulation, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointcenter()Gets the center of the circle.booleanequals(Object obj)inthashCode()doubleradius()Gets the radius of the circle.StringtoString()
-
-
-
Constructor Detail
-
Circle
public Circle(Point c, double r)
Constructor.
Constructs a new Circle- Parameters:
c- Center of the circle.r- Radius of the circle.
-
Circle
public Circle(Circle circ)
Copy Constructor.
Creates a new Circle with same properties ofcirc.- Parameters:
circ- Circle to clone.
-
-
Method Detail
-
center
public Point 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.
-
-