Home
last modified time | relevance | path

Searched refs:fromPointPair (Results 1 – 8 of 8) sorted by relevance

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLngRect.java93 public static S2LatLngRect fromPointPair(S2LatLng p1, S2LatLng p2) { in fromPointPair() method in S2LatLngRect
95 return new S2LatLngRect(R1Interval.fromPointPair(p1.lat().radians(), p2 in fromPointPair()
96 .lat().radians()), S1Interval.fromPointPair(p1.lng().radians(), p2.lng() in fromPointPair()
107 S2LatLngRect r = fromPointPair(new S2LatLng(a), new S2LatLng(b)); in fromEdge()
289 S1Interval loHi = S1Interval.fromPointPair(a.lng().lo(), b.lng().hi()); in getDistance()
290 S1Interval hiLo = S1Interval.fromPointPair(a.lng().hi(), b.lng().lo()); in getDistance()
420 S1Interval edgeLng = S1Interval.fromPointPair( in intersects()
712 S1Interval abTheta = S1Interval.fromPointPair(Math.atan2( in intersectsLatEdge()
DS2Cell.java323 R1Interval lat = R1Interval.fromPointPair(getLatitude(i, j), getLatitude(1 - i, 1 - j)); in getRectBound()
328 S1Interval lng = S1Interval.fromPointPair(getLongitude(i, 1 - j), getLongitude(1 - i, j)); in getRectBound()
DR1Interval.java56 public static R1Interval fromPointPair(double p1, double p2) { in fromPointPair() method in R1Interval
DS2EdgeUtil.java191 bound = bound.union(S2LatLngRect.fromPointPair(aLatLng, bLatLng)); in addPoint()
362 boolean result = interval.intersects(S1Interval.fromPointPair(lng0, lng1)); in intersects()
DS1Interval.java102 public static S1Interval fromPointPair(double p1, double p2) { in fromPointPair() method in S1Interval
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DR1IntervalTest.java89 assertEquals(R1Interval.fromPointPair(4, 4), new R1Interval(4, 4)); in testBasic()
90 assertEquals(R1Interval.fromPointPair(-1, -2), new R1Interval(-2, -1)); in testBasic()
91 assertEquals(R1Interval.fromPointPair(-5, 3), new R1Interval(-5, 3)); in testBasic()
DS1IntervalTest.java298 assertEquals(S1Interval.fromPointPair(-S2.M_PI, S2.M_PI), pi); in testBasic()
299 assertEquals(S1Interval.fromPointPair(S2.M_PI, -S2.M_PI), pi); in testBasic()
300 assertEquals(S1Interval.fromPointPair(mid34.hi(), mid34.lo()), mid34); in testBasic()
301 assertEquals(S1Interval.fromPointPair(mid23.lo(), mid23.hi()), mid23); in testBasic()
DS2LatLngRectTest.java97 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()
376 S2LatLngRect.fromPointPair(new S2LatLng(randomPoint()), new S2LatLng(randomPoint())); in testGetDistanceRandomPairs()
378 S2LatLngRect.fromPointPair(new S2LatLng(randomPoint()), new S2LatLng(randomPoint())); in testGetDistanceRandomPairs()