Package org.locationtech.spatial4j.shape
Interface Circle
-
- All Superinterfaces:
Shape
- All Known Implementing Classes:
CircleImpl
,GeoCircle
public interface Circle extends Shape
A circle, also known as a point-radius since that is what it is comprised of.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getRadius()
The distance from the point's center to its edge, measured in the same units as x & y (e.g.void
reset(double x, double y, double radiusDEG)
Expert: Resets the state of this shape given the arguments.-
Methods inherited from interface org.locationtech.spatial4j.shape.Shape
equals, getArea, getBoundingBox, getBuffered, getCenter, getContext, hasArea, isEmpty, relate
-
-
-
-
Method Detail
-
reset
void reset(double x, double y, double radiusDEG)
Expert: Resets the state of this shape given the arguments. This is a performance feature to avoid excessive Shape object allocation as well as some argument error checking. Mutable shapes is error-prone so use with care.
-
getRadius
double getRadius()
The distance from the point's center to its edge, measured in the same units as x & y (e.g. degrees if WGS84).
-
-