Interface Point

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

    public interface Point
    extends Shape
    A Point with X & Y coordinates.
    • 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.
      • getLat

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

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