Uses of Class
com.google.common.geometry.S2LatLngRect
-
Uses of S2LatLngRect in com.google.common.geometry
Methods in com.google.common.geometry that return S2LatLngRectModifier and TypeMethodDescriptionReturns a new rectangle that includes this rectangle and the given S2LatLng, expanding this rectangle to include the point by the minimum amount possible.Returns a new rectangle that includes this rectangle and the given point, expanding this rectangle to include the point by the minimum amount possible.S2LatLngRect.Builder.build()Returns a new immutable S2LatLngRect copied from the current state of this builder.S2LatLngRect.convolveWithCap(S1Angle angle) Returns a rectangle that contains the convolution of this rectangle with a cap of the given angle.static S2LatLngRectS2LatLngRect.decode(InputStream input) Decodes anS2LatLngRectthat was encoded usingS2LatLngRect.encode(OutputStream).static S2LatLngRectS2LatLngRect.empty()The canonical empty rectangle, as derived from the empty R1 and S1 intervals.Returns a rectangle that contains all points whose latitude distance from this rectangle is at most margin.lat(), and whose longitude distance from this rectangle is at most margin.lng().S2LatLngRect.expandedByDistance(S1Angle distance) Expands this rectangle so that it contains all points within the given distance of the boundary, and return the smallest such rectangle.static S2LatLngRectS2LatLngRect.fromCenterSize(S2LatLng center, S2LatLng size) Constructs a rectangle of the given size centered around the given point.static S2LatLngRectReturns a latitude-longitude rectangle that contains the edge from "a" to "b".static S2LatLngRectConvenience method to construct a rectangle containing a single point.static S2LatLngRectS2LatLngRect.fromPointPair(S2LatLng p1, S2LatLng p2) Convenience method to construct the minimal bounding rectangle containing the two given normalized points.static S2LatLngRectS2LatLngRect.full()The canonical full rectangle.S2EdgeUtil.RectBounder.getBound()Returns the bounding rectangle of the edge chain that connects the vertices defined so far.S2Cap.getRectBound()S2Cell.getRectBound()S2CellUnion.getRectBound()S2LatLngRect.Builder.getRectBound()S2LatLngRect.getRectBound()S2Loop.getRectBound()Returns a fairly tight bounding latitude-longitude rectangle.S2Point.getRectBound()S2PointRegion.getRectBound()S2Polygon.getRectBound()Returns a fairly tight bounding latitude-longitude rectangle.S2Polyline.getRectBound()Return a bounding latitude-longitude rectangle.S2Region.getRectBound()Return a bounding latitude-longitude rectangle.S2RegionIntersection.getRectBound()S2RegionUnion.getRectBound()S2ShapeIndexRegion.getRectBound()S2Loop.getSubregionBound()Returns a slightly looser bounding latitude-longitude rectangle than that returned byS2Loop.getRectBound().S2LatLngRect.intersection(S2LatLngRectBase other) Returns the smallest rectangle containing the intersection of this rectangle and the given rectangle.static S2LatLngRectS2TextFormat.makeLatLngRect(String str) As above, but does not CHECK-fail on invalid input.S2LatLngRect.polarClosure()If the rectangle does not include either pole, return it unmodified.S2LatLngRect.union(S2LatLngRectBase other) Returns the smallest rectangle containing the union of this rectangle and the given rectangle.Methods in com.google.common.geometry with parameters of type S2LatLngRectModifier and TypeMethodDescriptionS2LatLngRect.Builder.intersection(S2LatLngRect other) Mutates this rectangle to be the smallest rectangle containing the intersection of the current and given rectangles.static S2LoopS2Loop.newLoopWithTrustedDetails(List<S2Point> vertices, boolean originInside, S2LatLngRect bound) Fast/unsafe loop initialization.static StringS2TextFormat.toString(S2LatLngRect rect) Convert an S2LatLngRect to the S2TextFormat string representation documented above.S2LatLngRect.Builder.union(S2LatLngRect other) Mutates this rectangle to be the smallest rectangle containing the union of the current and given rectangles.