Lines Matching refs:S1Angle

188             .convolveWithCap(S1Angle.degrees(15));  in testBasic()
194 .convolveWithCap(S1Angle.degrees(15)); in testBasic()
203 .getCapBound().approxEquals(S2Cap.fromAxisAngle(new S2Point(0, 0, 1), S1Angle.degrees(2)))); in testBasic()
208 .approxEquals(S2Cap.fromAxisAngle(new S2Point(0, 0, -1), S1Angle.degrees(80)))); in testBasic()
295 S1Angle zero = S1Angle.radians(0); in testGetDistanceOverlapping()
388 private static S1Angle bruteForceDistance(S2LatLngRect a, S2LatLngRect b) { in bruteForceDistance()
390 return S1Angle.radians(0); in bruteForceDistance()
404 S1Angle latA[] = {a.latLo(), a.latHi()}; in bruteForceDistance()
405 S1Angle latB[] = {b.latLo(), b.latHi()}; in bruteForceDistance()
411 S1Angle minDistance = S1Angle.degrees(180.0); in bruteForceDistance()
419 S1Angle aToLat = getDistance(currentA, latB[j], b.lng()); in bruteForceDistance()
420 S1Angle bToLat = getDistance(currentB, latA[j], a.lng()); in bruteForceDistance()
421 S1Angle aToLng = in bruteForceDistance()
423 S1Angle bToLng = in bruteForceDistance()
426 minDistance = S1Angle.min( in bruteForceDistance()
427 minDistance, S1Angle.min(aToLat, S1Angle.min(bToLat, S1Angle.min(aToLng, bToLng)))); in bruteForceDistance()
433 private static S1Angle bruteForceRectPointDistance(S2LatLngRect a, S2LatLng b) { in bruteForceRectPointDistance()
435 return S1Angle.radians(0); in bruteForceRectPointDistance()
438 S1Angle bToLoLat = getDistance(b, a.latLo(), a.lng()); in bruteForceRectPointDistance()
439 S1Angle bToHiLat = getDistance(b, a.latHi(), a.lng()); in bruteForceRectPointDistance()
440 S1Angle bToLoLng = in bruteForceRectPointDistance()
443 S1Angle bToHiLng = in bruteForceRectPointDistance()
446 return S1Angle.min(bToLoLat, S1Angle.min(bToHiLat, S1Angle.min(bToLoLng, bToHiLng))); in bruteForceRectPointDistance()
453 private static S1Angle getDistance(S2LatLng x, S1Angle lat, S1Interval interval) { in getDistance()
459 return S1Angle.radians(Math.abs(x.lat().radians() - lat.radians())); in getDistance()
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()
497 S1Angle distance1 = bruteForceRectPointDistance(a, p.normalized()); in verifyGetRectPointDistance()
498 S1Angle distance2 = a.getDistance(p.normalized()); in verifyGetRectPointDistance()
508 S1Angle distance1 = bruteForceDistance(a, b); in verifyGetDistance()
509 S1Angle distance2 = a.getDistance(b); in verifyGetDistance()