public class Sphere extends Object implements Shape
Constructor and Description |
---|
Sphere(Circle circle)
Creates a Sphere from the given
Circle . |
Sphere(Circle circle)
Deprecated.
|
Sphere(Point center,
Distance radius)
Creates a Sphere around the given center
Point with the given radius. |
Sphere(Point center,
double radius)
Creates a Sphere around the given center
Point with the given radius. |
Modifier and Type | Method and Description |
---|---|
List<? extends 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.
|
Distance |
getRadius()
Returns the radius of the
Circle . |
int |
hashCode() |
String |
toString() |
public static final String COMMAND
public Sphere(Point center, Distance radius)
Point
with the given radius.center
- must not be null.radius
- must not be null.public Sphere(Point center, double radius)
Point
with the given radius.center
- radius
- @Deprecated public Sphere(Circle circle)
Circle
.circle
- Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.