| Constructor and Description |
|---|
Circle(double centerX,
double centerY,
double radius)
Creates a new
Circle from the given coordinates and radius. |
Circle(Point center,
double radius)
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
asList()
|
boolean |
equals(Object obj) |
Point |
getCenter()
Returns the center of the
Circle. |
String |
getCommand()
Returns the command to be used to create the $within criterion.
|
double |
getRadius()
Returns the radius of the
Circle. |
int |
hashCode() |
String |
toString() |
public Circle(Point center, double radius)
center - must not be null.radius - must be greater or equal to zero.public Circle(double centerX,
double centerY,
double radius)
Circle from the given coordinates and radius.centerX - centerY - radius - must be greater or equal to zero.public double getRadius()
Circle.public String getCommand()
ShapegetCommand in interface ShapeCopyright © 2011-2013-2013 SpringSource. All Rights Reserved.