java.lang.Object
org.elasticsearch.h3.LatLng
pair of latitude/longitude
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleReturns latitude in degreesdoubleReturns latitude in radiansdoubleReturns longitude in degreesdoubleReturns longitude in radiansdoublegreatCircleMaxLatitude(LatLng latLng) Determines the maximum latitude of the great circle defined by this LatLng to the provided LatLng.doublegreatCircleMinLatitude(LatLng latLng) Determines the minimum latitude of the great circle defined by this LatLng to the provided LatLng.inthashCode()
-
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
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
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
-
hashCode
public int hashCode()
-