Class Circle
java.lang.Object
org.locationtech.jts.geom.Geometry
org.apache.sedona.common.geometryObjects.Circle
- All Implemented Interfaces:
Serializable,Cloneable,Comparable
public class Circle
extends org.locationtech.jts.geom.Geometry
The Class Circle.
- See Also:
-
Field Summary
Fields inherited from class org.locationtech.jts.geom.Geometry
envelope, factory, SRID, TYPECODE_GEOMETRYCOLLECTION, TYPECODE_LINEARRING, TYPECODE_LINESTRING, TYPECODE_MULTILINESTRING, TYPECODE_MULTIPOINT, TYPECODE_MULTIPOLYGON, TYPECODE_POINT, TYPECODE_POLYGON, TYPENAME_GEOMETRYCOLLECTION, TYPENAME_LINEARRING, TYPENAME_LINESTRING, TYPENAME_MULTILINESTRING, TYPENAME_MULTIPOINT, TYPENAME_MULTIPOLYGON, TYPENAME_POINT, TYPENAME_POLYGON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.locationtech.jts.geom.CoordinateFilter filter) voidapply(org.locationtech.jts.geom.CoordinateSequenceFilter filter) voidapply(org.locationtech.jts.geom.GeometryComponentFilter filter) voidapply(org.locationtech.jts.geom.GeometryFilter filter) protected intcompareToSameClass(Object other) protected intcompareToSameClass(Object other, org.locationtech.jts.geom.CoordinateSequenceComparator comp) protected org.locationtech.jts.geom.Envelopeorg.locationtech.jts.geom.Geometrycopy()protected org.locationtech.jts.geom.Geometrybooleancovers(org.locationtech.jts.geom.Geometry other) booleanequalsExact(org.locationtech.jts.geom.Geometry g, double tolerance) org.locationtech.jts.geom.Geometryintorg.locationtech.jts.geom.GeometryGets the center geometry.org.locationtech.jts.geom.CoordinateGets the center point.org.locationtech.jts.geom.Coordinateorg.locationtech.jts.geom.Coordinate[]intintGets the radius.protected intbooleanintersects(org.locationtech.jts.geom.Geometry other) booleanisEmpty()voidorg.locationtech.jts.geom.Geometryreverse()protected org.locationtech.jts.geom.GeometryvoidSets the radius.toString()Methods inherited from class org.locationtech.jts.geom.Geometry
buffer, buffer, buffer, clone, compare, compareTo, compareTo, contains, convexHull, coveredBy, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getLength, getNumGeometries, getPrecisionModel, getSRID, getUserData, hasDimension, hashCode, hasNonEmptyElements, hasNullElements, intersection, isEquivalentClass, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toText, touches, union, union, within
-
Constructor Details
-
Circle
Instantiates a new circle.- Parameters:
centerGeometry- the center geometrygivenRadius- the given radius
-
-
Method Details
-
getCenterGeometry
public org.locationtech.jts.geom.Geometry getCenterGeometry()Gets the center geometry.- Returns:
- the center geometry
-
getCenterPoint
public org.locationtech.jts.geom.Coordinate getCenterPoint()Gets the center point.- Returns:
- the center point
-
getRadius
Gets the radius.- Returns:
- the radius
-
setRadius
Sets the radius.- Parameters:
givenRadius- the new radius
-
covers
public boolean covers(org.locationtech.jts.geom.Geometry other) - Overrides:
coversin classorg.locationtech.jts.geom.Geometry
-
intersects
public boolean intersects(org.locationtech.jts.geom.Geometry other) - Overrides:
intersectsin classorg.locationtech.jts.geom.Geometry
-
getGeometryType
- Specified by:
getGeometryTypein classorg.locationtech.jts.geom.Geometry
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate()- Specified by:
getCoordinatein classorg.locationtech.jts.geom.Geometry
-
getCoordinates
public org.locationtech.jts.geom.Coordinate[] getCoordinates()- Specified by:
getCoordinatesin classorg.locationtech.jts.geom.Geometry
-
getNumPoints
public int getNumPoints()- Specified by:
getNumPointsin classorg.locationtech.jts.geom.Geometry
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classorg.locationtech.jts.geom.Geometry
-
getDimension
public int getDimension()- Specified by:
getDimensionin classorg.locationtech.jts.geom.Geometry
-
getBoundary
public org.locationtech.jts.geom.Geometry getBoundary()- Specified by:
getBoundaryin classorg.locationtech.jts.geom.Geometry
-
getBoundaryDimension
public int getBoundaryDimension()- Specified by:
getBoundaryDimensionin classorg.locationtech.jts.geom.Geometry
-
reverse
public org.locationtech.jts.geom.Geometry reverse()- Overrides:
reversein classorg.locationtech.jts.geom.Geometry
-
reverseInternal
protected org.locationtech.jts.geom.Geometry reverseInternal()- Specified by:
reverseInternalin classorg.locationtech.jts.geom.Geometry
-
copy
public org.locationtech.jts.geom.Geometry copy()- Overrides:
copyin classorg.locationtech.jts.geom.Geometry
-
copyInternal
protected org.locationtech.jts.geom.Geometry copyInternal()- Specified by:
copyInternalin classorg.locationtech.jts.geom.Geometry
-
equalsExact
public boolean equalsExact(org.locationtech.jts.geom.Geometry g, double tolerance) - Specified by:
equalsExactin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.CoordinateFilter filter) - Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.CoordinateSequenceFilter filter) - Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.GeometryFilter filter) - Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.GeometryComponentFilter filter) - Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
normalize
public void normalize()- Specified by:
normalizein classorg.locationtech.jts.geom.Geometry
-
computeEnvelopeInternal
protected org.locationtech.jts.geom.Envelope computeEnvelopeInternal()- Specified by:
computeEnvelopeInternalin classorg.locationtech.jts.geom.Geometry
-
compareToSameClass
- Specified by:
compareToSameClassin classorg.locationtech.jts.geom.Geometry
-
compareToSameClass
protected int compareToSameClass(Object other, org.locationtech.jts.geom.CoordinateSequenceComparator comp) - Specified by:
compareToSameClassin classorg.locationtech.jts.geom.Geometry
-
getTypeCode
protected int getTypeCode()- Specified by:
getTypeCodein classorg.locationtech.jts.geom.Geometry
-
toString
- Overrides:
toStringin classorg.locationtech.jts.geom.Geometry
-