Class XYPoint


  • public final class XYPoint
    extends XYGeometry
    Represents a point on the earth's surface. You can construct the point directly with double coordinates.

    NOTES:

    1. latitude/longitude values must be in decimal degrees.
    2. For more advanced GeoSpatial indexing and query operations see the spatial-extras module
    • Constructor Detail

      • XYPoint

        public XYPoint​(float x,
                       float y)
        Creates a new Point from the supplied latitude/longitude.
    • Method Detail

      • getX

        public float getX()
        Returns latitude value at given index
      • getY

        public float getY()
        Returns longitude value at given index
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object