public class Sphere extends Object implements Shape
| Constructor and Description |
|---|
Sphere(Circle circle)
Creates a Sphere from the given
Circle. |
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 - public List<? extends Object> asList()
Shape as a list of usually Double or Lists of Doubles. Wildcard bound
to allow implementations to return a more concrete element type.public String getCommand()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.