Home
last modified time | relevance | path

Searched refs:S2LatLngRect (Results 1 – 15 of 15) sorted by relevance

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2LatLngRectTest.java20 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()
[all …]
DS2PolylineTest.java39 assertEquals(empty.getRectBound(), S2LatLngRect.empty()); in testBasic()
DS2LoopTest.java107 new S2LatLngRect(S2LatLng.fromDegrees(80, -180), S2LatLng.fromDegrees(90, 180))); in testBounds()
109 new S2LatLngRect(S2LatLng.fromDegrees(-90, -180), S2LatLng.fromDegrees(-80, 180))); in testBounds()
DS2CellTest.java211 S2LatLngRect parentRect = cell.getRectBound(); in testSubdivide()
217 S2LatLngRect childRect = children[i].getRectBound(); in testSubdivide()
DS2CapTest.java127 S2LatLngRect rect = in testRectBound()
DS2EdgeUtilTest.java150 private S2LatLngRect getEdgeBound(double x1, in getEdgeBound()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLngRect.java26 public strictfp class S2LatLngRect implements S2Region { class
35 public S2LatLngRect(final S2LatLng lo, final S2LatLng hi) { in S2LatLngRect() method in S2LatLngRect
42 public S2LatLngRect(R1Interval lat, S1Interval lng) { in S2LatLngRect() method in S2LatLngRect
49 public static S2LatLngRect empty() { in empty()
50 return new S2LatLngRect(R1Interval.empty(), S1Interval.empty()); in empty()
54 public static S2LatLngRect full() { in full()
55 return new S2LatLngRect(fullLat(), fullLng()); in full()
76 public static S2LatLngRect fromCenterSize(S2LatLng center, S2LatLng size) { in fromCenterSize()
81 public static S2LatLngRect fromPoint(S2LatLng p) { in fromPoint()
83 return new S2LatLngRect(p, p); in fromPoint()
[all …]
DS2Cell.java304 public S2LatLngRect getRectBound() { in getRectBound()
324 lat = lat.expanded(MAX_ERROR).intersection(S2LatLngRect.fullLat()); in getRectBound()
326 return new S2LatLngRect(lat, S1Interval.full()); in getRectBound()
329 return new S2LatLngRect(lat, lng.expanded(MAX_ERROR)); in getRectBound()
337 return new S2LatLngRect( in getRectBound()
340 return new S2LatLngRect( in getRectBound()
343 return new S2LatLngRect( in getRectBound()
346 return new S2LatLngRect( in getRectBound()
349 return new S2LatLngRect( in getRectBound()
352 return new S2LatLngRect( in getRectBound()
DS2Loop.java80 private S2LatLngRect bound;
94 this.bound = S2LatLngRect.full(); in S2Loop()
124 public S2Loop(S2Cell cell, S2LatLngRect bound) { in S2Loop()
271 bound = S2LatLngRect.full(); in invert()
580 public S2LatLngRect getRectBound() { in getRectBound()
595 S2LatLngRect cellBound = cell.getRectBound(); in contains()
614 S2LatLngRect cellBound = cell.getRectBound(); in mayIntersect()
850 S2LatLngRect b = bounder.getBound(); in initBound()
853 bound = S2LatLngRect.full(); in initBound()
855 b = new S2LatLngRect(new R1Interval(b.lat().lo(), S2.M_PI_2), S1Interval.full()); in initBound()
[all …]
DS2Cap.java243 public S2LatLngRect getRectBound() { in getRectBound()
245 return S2LatLngRect.empty(); in getRectBound()
291 return new S2LatLngRect(new R1Interval(lat[0], lat[1]), new S1Interval( in getRectBound()
DS2Polygon.java63 private S2LatLngRect bound;
72 this.bound = S2LatLngRect.empty(); in S2Polygon()
83 this.bound = S2LatLngRect.empty(); in S2Polygon()
178 bound = S2LatLngRect.empty(); in init()
195 bound = S2LatLngRect.empty(); in release()
866 public S2LatLngRect getRectBound() { in getRectBound()
880 S2LatLngRect cellBound = cell.getRectBound(); in contains()
900 S2LatLngRect cellBound = cell.getRectBound(); in mayIntersect()
DS2Region.java36 public abstract S2LatLngRect getRectBound(); in getRectBound()
DS2EdgeUtil.java171 private S2LatLngRect bound;
174 this.bound = S2LatLngRect.empty(); in RectBounder()
191 bound = bound.union(S2LatLngRect.fromPointPair(aLatLng, bLatLng)); in addPoint()
214 bound = new S2LatLngRect(lat, bound.lng()); in addPoint()
225 public S2LatLngRect getBound() { in getBound()
DS2CellUnion.java445 public S2LatLngRect getRectBound() { in getRectBound()
446 S2LatLngRect bound = S2LatLngRect.empty(); in getRectBound()
DS2Polyline.java153 public S2LatLngRect getRectBound() { in getRectBound()