Class LatLng

java.lang.Object
org.elasticsearch.h3.LatLng

public final class LatLng extends Object
pair of latitude/longitude
  • Method Details

    • getLatRad

      public double getLatRad()
      Returns latitude in radians
    • getLonRad

      public double getLonRad()
      Returns longitude in radians
    • getLatDeg

      public double getLatDeg()
      Returns latitude in degrees
    • getLonDeg

      public double getLonDeg()
      Returns longitude in degrees
    • greatCircleMaxLatitude

      public double greatCircleMaxLatitude(LatLng latLng)
      Determines the maximum latitude of the great circle defined by this LatLng to the provided LatLng.
      Parameters:
      latLng - The LatLng.
      Returns:
      The maximum latitude of the great circle in radians.
    • greatCircleMinLatitude

      public double greatCircleMinLatitude(LatLng latLng)
      Determines the minimum latitude of the great circle defined by this LatLng to the provided LatLng.
      Parameters:
      latLng - The LatLng.
      Returns:
      The minimum latitude of the great circle in radians.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object