Package org.locationtech.spatial4j.shape
Interface Point
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getX()
The X coordinate, or Longitude in geospatial contexts.double
getY()
The Y coordinate, or Latitude in geospatial contexts.void
reset(double x, double y)
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)
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.
-
getX
double getX()
The X coordinate, or Longitude in geospatial contexts.
-
getY
double getY()
The Y coordinate, or Latitude in geospatial contexts.
-
-