Interface Point

All Superinterfaces:
Shape
All Known Implementing Classes:
JtsPoint, PointImpl

public interface Point extends Shape
A Point with X & Y coordinates.
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    Convenience method that usually maps on getY()
    default double
    Convenience method that usually maps on getX()
    double
    The X coordinate, or Longitude in geospatial contexts.
    double
    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 Details

    • 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.
    • getLat

      default double getLat()
      Convenience method that usually maps on getY()
    • getLon

      default double getLon()
      Convenience method that usually maps on getX()