public class CircleImpl extends Object implements Circle, Spatial4jShapeProvider, Externalizable
| Constructor and Description |
|---|
CircleImpl() |
CircleImpl(double centerX,
double centerY,
double radius) |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendTo(StringBuilder stringBuilder,
ShapeFormat shapeFormat)
Appends a string representation of the shape using the specified format
|
boolean |
equals(Object o) |
double |
getCenterX()
Gets the X coordinate of the center of this circle.
|
double |
getCenterY()
Gets the Y coordinate of the center of this circle.
|
double |
getRadius()
Gets the radius of this circle.
|
org.locationtech.spatial4j.shape.Shape |
getSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext)
Gets a Spatial4j shape from the current object
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
String |
toString() |
String |
toString(ShapeFormat shapeFormat)
Returns a string representation of the shape using the specified format.
|
void |
writeExternal(ObjectOutput out) |
public CircleImpl()
public CircleImpl(double centerX,
double centerY,
double radius)
public double getCenterX()
CirclegetCenterX in interface Circlepublic double getCenterY()
CirclegetCenterY in interface Circlepublic double getRadius()
Circlepublic String toString(ShapeFormat shapeFormat)
Shapepublic StringBuilder appendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat)
Shapepublic org.locationtech.spatial4j.shape.Shape getSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext)
Spatial4jShapeProvidergetSpatial4jShape in interface Spatial4jShapeProviderspatialContext - The SpatialContext which will be used to construct the shape, if
needed.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © GigaSpaces.