• Home
  • Raw
  • Download

Lines Matching refs:S2LatLngRect

20   public void testIntervalOps(S2LatLngRect x, S2LatLngRect y, String expectedRelation,  in testIntervalOps()
21 S2LatLngRect expectedUnion, S2LatLngRect expectedIntersection) { in testIntervalOps()
39 S2LatLngRect r = x.addPoint(y.lo()); in testIntervalOps()
44 public void testCellOps(S2LatLngRect r, S2Cell cell, int level) { in testCellOps()
68 S2LatLngRect empty = S2LatLngRect.empty(); in testBasic()
69 S2LatLngRect full = S2LatLngRect.full(); in testBasic()
76 S2LatLngRect d1 = rectFromDegrees(-90, 0, -45, 180); in testBasic()
86 S2LatLngRect.fromCenterSize(S2LatLng.fromDegrees(80, 170), S2LatLng.fromDegrees(40, 60)) in testBasic()
88 assertTrue(S2LatLngRect in testBasic()
91 S2LatLngRect.fromCenterSize(S2LatLng.fromDegrees(-90, 180), S2LatLng.fromDegrees(20, 50)) in testBasic()
95 assertEquals(S2LatLngRect.fromPoint(d1.lo()), new S2LatLngRect(d1.lo(), d1.lo())); in testBasic()
97 S2LatLngRect.fromPointPair(S2LatLng.fromDegrees(-35, -140), S2LatLng.fromDegrees(15, 155)), in testBasic()
100 S2LatLngRect.fromPointPair(S2LatLng.fromDegrees(25, -70), S2LatLng.fromDegrees(-90, 80)), in testBasic()
106 S2LatLngRect r1 = new S2LatLngRect(eqM180, northPole); in testBasic()
123 S2LatLngRect r = new S2LatLngRect(new R1Interval(lat, lat + S2.M_PI_4), new S1Interval( in testBasic()
138 S2LatLngRect r1Mid = rectFromDegrees(45, -90, 45, -90); in testBasic()
139 S2LatLngRect reqM180 = new S2LatLngRect(eqM180, eqM180); in testBasic()
140 S2LatLngRect rNorthPole = new S2LatLngRect(northPole, northPole); in testBasic()
168 S2LatLngRect p = S2LatLngRect.empty(); in testBasic()
179 assertTrue(S2LatLngRect.empty().expanded(S2LatLng.fromDegrees(20, 30)).isEmpty()); in testBasic()
180 assertTrue(S2LatLngRect.full().expanded(S2LatLng.fromDegrees(20, 30)).isFull()); in testBasic()
186 S2LatLngRect llr1 = in testBasic()
187 new S2LatLngRect(S2LatLng.fromDegrees(0, 170), S2LatLng.fromDegrees(0, -170)) in testBasic()
189 S2LatLngRect llr2 = in testBasic()
190 new S2LatLngRect(S2LatLng.fromDegrees(-15, 155), S2LatLng.fromDegrees(15, -155)); in testBasic()
193 llr1 = new S2LatLngRect(S2LatLng.fromDegrees(60, 150), S2LatLng.fromDegrees(80, 10)) in testBasic()
195 llr2 = new S2LatLngRect(S2LatLng.fromDegrees(45, -180), S2LatLng.fromDegrees(90, 180)); in testBasic()
199 assertTrue(new S2LatLngRect(S2LatLng.fromDegrees(-45, -45), S2LatLng.fromDegrees(45, 45)) in testBasic()
202 assertTrue(new S2LatLngRect(S2LatLng.fromDegrees(88, -80), S2LatLng.fromDegrees(89, 80)) in testBasic()
206 new S2LatLngRect(S2LatLng.fromDegrees(-30, -150), S2LatLng.fromDegrees(-10, 50)) in testBasic()
219 S2LatLngRect r4 = rectFromDegrees(-45.1, -45.1, 0.1, 0.1); in testBasic()
225 S2LatLngRect r5 = rectFromDegrees(-10, -45, 10, 0); in testBasic()
241 S2LatLngRect bound0tr = cell0tr.getRectBound(); in testBasic()
255 S2LatLngRect bound202 = cell202.getRectBound(); in testBasic()
263 assertEquals(0.0, S2LatLngRect.empty().area()); in testArea()
264 assertDoubleNear(4 * Math.PI, S2LatLngRect.full().area()); in testArea()
293 S2LatLngRect a = rectFromDegrees(0, 0, 2, 2); in testGetDistanceOverlapping()
294 S2LatLngRect b = pointRectFromDegrees(0, 0); in testGetDistanceOverlapping()
310 S2LatLngRect a = rectFromDegrees(-1, -1, 2, 1); in testGetDistanceRectVsPoint()
321 S2LatLngRect b = rectFromDegrees(86, 0, 88, 2); in testGetDistanceRectVsPoint()
347 S2LatLngRect c = rectFromDegrees(88, 0, 90, 2); in testGetDistanceRectVsPoint()
358 S2LatLngRect a = rectFromDegrees(-1, -1, 2, 1); in testGetDistanceRectVsRect()
363 S2LatLngRect b = rectFromDegrees(-87, 0, -85, 3); in testGetDistanceRectVsRect()
375 S2LatLngRect a = in testGetDistanceRandomPairs()
376 S2LatLngRect.fromPointPair(new S2LatLng(randomPoint()), new S2LatLng(randomPoint())); in testGetDistanceRandomPairs()
377 S2LatLngRect b = in testGetDistanceRandomPairs()
378 S2LatLngRect.fromPointPair(new S2LatLng(randomPoint()), new S2LatLng(randomPoint())); in testGetDistanceRandomPairs()
388 private static S1Angle bruteForceDistance(S2LatLngRect a, S2LatLngRect b) { in bruteForceDistance()
433 private static S1Angle bruteForceRectPointDistance(S2LatLngRect a, S2LatLng b) { in bruteForceRectPointDistance()
466 private static S2LatLngRect getEdgeBound(double x1, in getEdgeBound()
472 return S2LatLngRect.fromEdge( in getEdgeBound()
476 private static S2LatLngRect pointRectFromDegrees(double lat, double lng) { in pointRectFromDegrees()
477 return S2LatLngRect.fromPoint(S2LatLng.fromDegrees(lat, lng).normalized()); in pointRectFromDegrees()
480 private static S2LatLngRect rectFromDegrees( in rectFromDegrees()
487 return new S2LatLngRect(S2LatLng.fromDegrees(latLo, lngLo).normalized(), in rectFromDegrees()
496 private static void verifyGetRectPointDistance(S2LatLngRect a, S2LatLng p) { in verifyGetRectPointDistance()
507 private static void verifyGetDistance(S2LatLngRect a, S2LatLngRect b) { in verifyGetDistance()