public class Circle extends Object implements Shape
| Constructor and Description |
|---|
Circle(double centerX,
double centerY,
double radius)
|
Circle(Point center,
Distance radius)
|
Circle(Point center,
double radius)
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Point |
getCenter()
Returns the center of the
Circle. |
Distance |
getRadius()
Returns the radius of the
Circle. |
int |
hashCode() |
String |
toString() |
public Circle(Point center, Distance radius)
center - must not be null.radius - must not be null and it's value greater or equal to zero.public Circle(Point center, double radius)
center - must not be null.radius's - value must be greater or equal to zero.public Circle(double centerX,
double centerY,
double radius)
centerX - centerY - radius - must be greater or equal to zero.protected boolean canEqual(Object other)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.