Class CircleImpl
java.lang.Object
org.openspaces.spatial.shapes.impl.CircleImpl
- All Implemented Interfaces:
Externalizable,Serializable,Circle,Shape,Spatial4jShapeProvider
- Since:
- 11.0
- Author:
- Barak Bar Orion
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat) Appends a string representation of the shape using the specified formatbooleandoubleGets the X coordinate of the center of this circle.doubleGets the Y coordinate of the center of this circle.doubleGets the radius of this circle.org.locationtech.spatial4j.shape.ShapegetSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext) Gets a Spatial4j shape from the current objectinthashCode()voidtoString()toString(ShapeFormat shapeFormat) Returns a string representation of the shape using the specified format.void
-
Constructor Details
-
CircleImpl
public CircleImpl() -
CircleImpl
public CircleImpl(double centerX, double centerY, double radius)
-
-
Method Details
-
getCenterX
public double getCenterX()Description copied from interface:CircleGets the X coordinate of the center of this circle.- Specified by:
getCenterXin interfaceCircle
-
getCenterY
public double getCenterY()Description copied from interface:CircleGets the Y coordinate of the center of this circle.- Specified by:
getCenterYin interfaceCircle
-
getRadius
public double getRadius()Description copied from interface:CircleGets the radius of this circle. -
toString
-
toString
Description copied from interface:ShapeReturns a string representation of the shape using the specified format. -
appendTo
Description copied from interface:ShapeAppends a string representation of the shape using the specified format -
getSpatial4jShape
public org.locationtech.spatial4j.shape.Shape getSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext) Description copied from interface:Spatial4jShapeProviderGets a Spatial4j shape from the current object- Specified by:
getSpatial4jShapein interfaceSpatial4jShapeProvider- Parameters:
spatialContext- The SpatialContext which will be used to construct the shape, if needed.- Returns:
- A Spatial4j shape
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-