Constructor | Description |
---|---|
Circle(Point a,
Point b) |
Initializes a newly created Circle object whose location and size are determined
by Point a and and Point b
|
Modifier and Type | Method | Description |
---|---|---|
double |
calculateArea() |
Calculates the area of a circle.
|
double |
calculatePerimeter() |
Calculates the perimeter of a circle.
|
boolean |
equals(java.lang.Object o) |
Compares this circle to a specified object.
|
double |
getRadius() |
Calculates the radius of the circle.
|
int |
hashCode() |
Auto-generated hashcode using intelliJ.
|
public double getRadius()
public double calculateArea()
calculateArea
in class Shape
public double calculatePerimeter()
calculatePerimeter
in class Shape
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare the circle againstpublic int hashCode()
hashCode
in class java.lang.Object