Lines Matching refs:getDistance

296     assertEquals(zero, a.getDistance(a));  in testGetDistanceOverlapping()
297 assertEquals(zero, a.getDistance(b)); in testGetDistanceOverlapping()
298 assertEquals(zero, b.getDistance(b)); in testGetDistanceOverlapping()
299 assertEquals(zero, a.getDistance(S2LatLng.fromDegrees(0, 0))); in testGetDistanceOverlapping()
300 assertEquals(zero, a.getDistance(rectFromDegrees(0, 1, 2, 3))); in testGetDistanceOverlapping()
301 assertEquals(zero, a.getDistance(rectFromDegrees(0, 2, 2, 4))); in testGetDistanceOverlapping()
302 assertEquals(zero, a.getDistance(rectFromDegrees(1, 0, 3, 2))); in testGetDistanceOverlapping()
303 assertEquals(zero, a.getDistance(rectFromDegrees(2, 0, 4, 2))); in testGetDistanceOverlapping()
304 assertEquals(zero, a.getDistance(rectFromDegrees(1, 1, 3, 3))); in testGetDistanceOverlapping()
305 assertEquals(zero, a.getDistance(rectFromDegrees(2, 2, 4, 4))); in testGetDistanceOverlapping()
419 S1Angle aToLat = getDistance(currentA, latB[j], b.lng()); in bruteForceDistance()
420 S1Angle bToLat = getDistance(currentB, latA[j], a.lng()); in bruteForceDistance()
422 S2EdgeUtil.getDistance(currentA.toPoint(), lng_edge_b[j][0], lng_edge_b[j][1]); in bruteForceDistance()
424 S2EdgeUtil.getDistance(currentB.toPoint(), lng_edge_a[j][0], lng_edge_a[j][1]); in bruteForceDistance()
438 S1Angle bToLoLat = getDistance(b, a.latLo(), a.lng()); in bruteForceRectPointDistance()
439 S1Angle bToHiLat = getDistance(b, a.latHi(), a.lng()); in bruteForceRectPointDistance()
441 S2EdgeUtil.getDistance(b.toPoint(), new S2LatLng(a.latLo(), a.lngLo()).toPoint(), in bruteForceRectPointDistance()
444 S2EdgeUtil.getDistance(b.toPoint(), new S2LatLng(a.latLo(), a.lngHi()).toPoint(), in bruteForceRectPointDistance()
453 private static S1Angle getDistance(S2LatLng x, S1Angle lat, S1Interval interval) { in getDistance() method in S2LatLngRectTest
462 return S1Angle.min(x.getDistance(new S2LatLng(lat, S1Angle.radians(interval.lo()))), in getDistance()
463 x.getDistance(new S2LatLng(lat, S1Angle.radians(interval.hi())))); in getDistance()
498 S1Angle distance2 = a.getDistance(p.normalized()); in verifyGetRectPointDistance()
509 S1Angle distance2 = a.getDistance(b); in verifyGetDistance()