Lines Matching refs:S2LatLng
26 public strictfp class S2LatLng { class
34 public static final S2LatLng CENTER = new S2LatLng(0.0, 0.0);
39 public static S2LatLng fromRadians(double latRadians, double lngRadians) { in fromRadians()
40 return new S2LatLng(latRadians, lngRadians); in fromRadians()
43 public static S2LatLng fromDegrees(double latDegrees, double lngDegrees) { in fromDegrees()
44 return new S2LatLng(S1Angle.degrees(latDegrees), S1Angle.degrees(lngDegrees)); in fromDegrees()
47 public static S2LatLng fromE5(long latE5, long lngE5) { in fromE5()
48 return new S2LatLng(S1Angle.e5(latE5), S1Angle.e5(lngE5)); in fromE5()
51 public static S2LatLng fromE6(long latE6, long lngE6) { in fromE6()
52 return new S2LatLng(S1Angle.e6(latE6), S1Angle.e6(lngE6)); in fromE6()
55 public static S2LatLng fromE7(long latE7, long lngE7) { in fromE7()
56 return new S2LatLng(S1Angle.e7(latE7), S1Angle.e7(lngE7)); in fromE7()
72 private S2LatLng(double latRadians, double lngRadians) { in S2LatLng() method in S2LatLng
83 public S2LatLng(S1Angle lat, S1Angle lng) { in S2LatLng() method in S2LatLng
92 public S2LatLng() { in S2LatLng() method in S2LatLng
101 public S2LatLng(S2Point p) { in S2LatLng() method in S2LatLng
157 public S2LatLng normalized() { in normalized()
160 return new S2LatLng(Math.max(-S2.M_PI_2, Math.min(S2.M_PI_2, lat().radians())), in normalized()
180 public S1Angle getDistance(final S2LatLng o) { in getDistance()
210 public double getDistance(final S2LatLng o, double radius) { in getDistance()
219 public double getEarthDistance(final S2LatLng o) { in getEarthDistance()
227 public S2LatLng add(final S2LatLng o) { in add()
228 return new S2LatLng(latRadians + o.latRadians, lngRadians + o.lngRadians); in add()
235 public S2LatLng sub(final S2LatLng o) { in sub()
236 return new S2LatLng(latRadians - o.latRadians, lngRadians - o.lngRadians); in sub()
243 public S2LatLng mul(final double m) { in mul()
245 return new S2LatLng(latRadians * m, lngRadians * m); in mul()
250 if (that instanceof S2LatLng) { in equals()
251 S2LatLng o = (S2LatLng) that; in equals()
269 public boolean approxEquals(S2LatLng o, double maxError) { in approxEquals()
279 public boolean approxEquals(S2LatLng o) { in approxEquals()