Lines Matching refs:S2LatLngRect
26 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()
93 public static S2LatLngRect fromPointPair(S2LatLng p1, S2LatLng p2) { in fromPointPair()
95 return new S2LatLngRect(R1Interval.fromPointPair(p1.lat().radians(), p2 in fromPointPair()
105 public static S2LatLngRect fromEdge(S2Point a, S2Point b) { in fromEdge()
107 S2LatLngRect r = fromPointPair(new S2LatLng(a), new S2LatLng(b)); in fromEdge()
126 return new S2LatLngRect(new R1Interval(r.lat().lo(), absLat), r.lng()); in fromEdge()
128 return new S2LatLngRect(new R1Interval(-absLat, r.lat().hi()), r.lng()); in fromEdge()
230 S2LatLngRect a = this; in getDistance()
257 public S1Angle getDistance(S2LatLngRect other) { in getDistance()
258 S2LatLngRect a = this; in getDistance()
259 S2LatLngRect b = other; in getDistance()
361 public boolean contains(S2LatLngRect other) { in contains()
369 public boolean interiorContains(S2LatLngRect other) { in interiorContains()
376 public boolean intersects(S2LatLngRect other) { in intersects()
452 public boolean interiorIntersects(S2LatLngRect other) { in interiorIntersects()
457 public S2LatLngRect addPoint(S2Point p) { in addPoint()
463 public S2LatLngRect addPoint(S2LatLng ll) { in addPoint()
467 return new S2LatLngRect(newLat, newLng); in addPoint()
481 public S2LatLngRect expanded(S2LatLng margin) { in expanded()
486 return new S2LatLngRect(lat.expanded(margin.lat().radians()).intersection( in expanded()
494 public S2LatLngRect union(S2LatLngRect other) { in union()
495 return new S2LatLngRect(lat.union(other.lat), lng.union(other.lng)); in union()
504 public S2LatLngRect intersection(S2LatLngRect other) { in intersection()
511 return new S2LatLngRect(intersectLat, intersectLng); in intersection()
521 public S2LatLngRect convolveWithCap(S1Angle angle) { in convolveWithCap()
529 S2LatLngRect r = this; in convolveWithCap()
552 if (!(that instanceof S2LatLngRect)) { in equals()
555 S2LatLngRect otherRect = (S2LatLngRect) that; in equals()
564 public boolean approxEquals(S2LatLngRect other, double maxError) { in approxEquals()
569 public boolean approxEquals(S2LatLngRect other) { in approxEquals()
585 return new S2LatLngRect(this.lo(), this.hi()); in clone()
631 public S2LatLngRect getRectBound() { in getRectBound()