Uses of Class
com.google.common.geometry.S2LatLngRect
-
Uses of S2LatLngRect in com.google.common.geometry
Fields in com.google.common.geometry declared as S2LatLngRectModifier and TypeFieldDescriptionprivate S2LatLngRect
S2Loop.bound
A conservative bound on all points contained by this loop: if A.contains(P), then A.bound.contains(new S2LatLng(P)).private S2LatLngRect
S2Polygon.bound
bound
is a conservative bound on all points contained by this polygon: If A.contains(P), then A.bound.contains(new S2LatLng(P)).private S2LatLngRect
S2RegionIntersection.cachedRectBound
private S2LatLngRect
S2RegionUnion.cachedRectBound
private S2LatLngRect
S2Loop.subregionBound
Since "bound" is not exact, it is possible that a loop A contains another loop B whose bounds are slightly larger.private S2LatLngRect
S2Polygon.subregionBound
Since "bound" is not exact, it is possible that a polygon A contains another polygon B whose bounds are slightly larger.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.(package private) static S2LatLngRect
S2LatLngRect.decode
(LittleEndianInput decoder) static S2LatLngRect
S2LatLngRect.decode
(InputStream input) Decodes anS2LatLngRect
that was encoded usingencode(java.io.OutputStream)
.static S2LatLngRect
S2LatLngRect.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.(package private) static S2LatLngRect
S2EdgeUtil.RectBounder.expandForSubregions
(S2LatLngRect bound) Expand a bound returned by getBound() so that it is guaranteed to contain the bounds of any subregion whose bounds are computed using this class.static S2LatLngRect
S2LatLngRect.fromCenterSize
(S2LatLng center, S2LatLng size) Constructs a rectangle of the given size centered around the given point.static S2LatLngRect
Returns a latitude-longitude rectangle that contains the edge from "a" to "b".static S2LatLngRect
Convenience method to construct a rectangle containing a single point.static S2LatLngRect
S2LatLngRect.fromPointPair
(S2LatLng p1, S2LatLng p2) Convenience method to construct the minimal bounding rectangle containing the two given normalized points.static S2LatLngRect
S2LatLngRect.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 S2LatLngRect
S2TextFormat.makeLatLngRect
(String str) As above, but does not CHECK-fail on invalid input.(package private) S2LatLngRect
S2TextFormat.makeLatLngRectOrDie
(String str) Given a string in the same format as ParseLatLngs, returns the minimal bounding S2LatLngRect that contains the coordinates.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 TypeMethodDescription(package private) static S2LatLngRect
S2EdgeUtil.RectBounder.expandForSubregions
(S2LatLngRect bound) Expand a bound returned by getBound() so that it is guaranteed to contain the bounds of any subregion whose bounds are computed using this class.S2LatLngRect.Builder.intersection
(S2LatLngRect other) Mutates this rectangle to be the smallest rectangle containing the intersection of the current and given rectangles.static S2Loop
S2Loop.newLoopWithTrustedDetails
(List<S2Point> vertices, boolean originInside, S2LatLngRect bound) Fast/unsafe loop initialization.static String
S2TextFormat.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.Constructors in com.google.common.geometry with parameters of type S2LatLngRectModifierConstructorDescriptionprivate
S2Loop
(List<S2Point> vertices, boolean originInside, S2LatLngRect bound)