Uses of Class
com.google.common.geometry.S2LatLng
-
Packages that use S2LatLng Package Description com.google.common.geometry -
-
Uses of S2LatLng in com.google.common.geometry
Fields in com.google.common.geometry declared as S2LatLng Modifier and Type Field Description static S2LatLngS2LatLng. CENTERThe center point the lat/lng coordinate system.Methods in com.google.common.geometry that return S2LatLng Modifier and Type Method Description S2LatLngS2LatLng. add(S2LatLng o)Adds the given point to this point.static S2LatLngS2LatLng. fromDegrees(double latDegrees, double lngDegrees)static S2LatLngS2LatLng. fromE5(long latE5, long lngE5)static S2LatLngS2LatLng. fromE6(long latE6, long lngE6)static S2LatLngS2LatLng. fromE7(long latE7, long lngE7)static S2LatLngS2LatLng. fromRadians(double latRadians, double lngRadians)S2LatLngS2LatLng. mul(double m)Scales this point by the given scaling factor.S2LatLngS2LatLng. normalized()Returns a new S2LatLng based on this instance for whichisValid()will betrue.S2LatLngS2LatLng. sub(S2LatLng o)Subtracts the given point from this point.S2LatLngS2CellId. toLatLng()Return the S2LatLng corresponding to the center of the given cell.Methods in com.google.common.geometry with parameters of type S2LatLng Modifier and Type Method Description S2LatLngS2LatLng. add(S2LatLng o)Adds the given point to this point.booleanS2LatLng. approxEquals(S2LatLng o)Returns true if the given point is within1e-9radians of this point.booleanS2LatLng. approxEquals(S2LatLng o, double maxError)Returns true if both the latitude and longitude of the given point are withinmaxErrorradians of this point.static S2CellIdS2CellId. fromLatLng(S2LatLng ll)Return the leaf cell containing the given S2LatLng.S1AngleS2LatLng. getDistance(S2LatLng o)Return the distance (measured along the surface of the sphere) to the given point.doubleS2LatLng. getDistance(S2LatLng o, double radius)Returns the surface distance to the given point assuming a constant radius.doubleS2LatLng. getEarthDistance(S2LatLng o)Returns the surface distance to the given point assuming the default Earth radius ofEARTH_RADIUS_METERS.S2LatLngS2LatLng. sub(S2LatLng o)Subtracts the given point from this point.
-