• Home
  • Raw
  • Download

Lines Matching refs:S2LatLng

35   public S2LatLngRect(final S2LatLng lo, final S2LatLng hi) {  in S2LatLngRect()
76 public static S2LatLngRect fromCenterSize(S2LatLng center, S2LatLng size) { in fromCenterSize()
81 public static S2LatLngRect fromPoint(S2LatLng p) { in fromPoint()
93 public static S2LatLngRect fromPointPair(S2LatLng p1, S2LatLng p2) { in fromPointPair()
107 S2LatLngRect r = fromPointPair(new S2LatLng(a), new S2LatLng(b)); in fromEdge()
169 public S2LatLng lo() { in lo()
170 return new S2LatLng(latLo(), lngLo()); in lo()
173 public S2LatLng hi() { in hi()
174 return new S2LatLng(latHi(), lngHi()); in hi()
198 public S2LatLng getVertex(int k) { in getVertex()
202 return S2LatLng.fromRadians(lat.lo(), lng.lo()); in getVertex()
204 return S2LatLng.fromRadians(lat.lo(), lng.hi()); in getVertex()
206 return S2LatLng.fromRadians(lat.hi(), lng.hi()); in getVertex()
208 return S2LatLng.fromRadians(lat.hi(), lng.lo()); in getVertex()
218 public S2LatLng getCenter() { in getCenter()
219 return S2LatLng.fromRadians(lat.getCenter(), lng.getCenter()); in getCenter()
227 public S1Angle getDistance(S2LatLng p) { in getDistance()
246 S2Point lo = S2LatLng.fromRadians(a.lat().lo(), aLng).toPoint(); in getDistance()
247 S2Point hi = S2LatLng.fromRadians(a.lat().hi(), aLng).toPoint(); in getDistance()
249 S2LatLng.fromRadians(0, aLng - S2.M_PI_2).normalized().toPoint(); in getDistance()
304 S2Point aLo = new S2LatLng(a.latLo(), aLng).toPoint(); in getDistance()
305 S2Point aHi = new S2LatLng(a.latHi(), aLng).toPoint(); in getDistance()
307 S2LatLng.fromRadians(0, aLng.radians() - S2.M_PI_2).normalized().toPoint(); in getDistance()
308 S2Point bLo = new S2LatLng(b.latLo(), bLng).toPoint(); in getDistance()
309 S2Point bHi = new S2LatLng(b.latHi(), bLng).toPoint(); in getDistance()
311 S2LatLng.fromRadians(0, bLng.radians() - S2.M_PI_2).normalized().toPoint(); in getDistance()
323 public S2LatLng getSize() { in getSize()
324 return S2LatLng.fromRadians(lat.getLength(), lng.getLength()); in getSize()
331 public boolean contains(S2LatLng ll) { in contains()
344 return interiorContains(new S2LatLng(p)); in interiorContains()
351 public boolean interiorContains(S2LatLng ll) { in interiorContains()
410 S2LatLng[] cellLl = new S2LatLng[4]; in intersects()
413 cellLl[i] = new S2LatLng(cellV[i]); in intersects()
458 return addPoint(new S2LatLng(p)); in addPoint()
463 public S2LatLngRect addPoint(S2LatLng ll) { in addPoint()
481 public S2LatLngRect expanded(S2LatLng margin) { in expanded()
657 return contains(new S2LatLng(p)); in contains()
669 return S2.simpleCrossing(a, b, S2LatLng.fromRadians(lat.lo(), lng) in intersectsLngEdge()
670 .toPoint(), S2LatLng.fromRadians(lat.hi(), lng).toPoint()); in intersectsLngEdge()