Uses of Interface
com.google.common.geometry.S2Region
-
-
Uses of S2Region in com.google.common.geometry
Classes in com.google.common.geometry that implement S2Region Modifier and Type Class Description class
S2Cap
S2Cap represents a disc-shaped region defined by a center and radius.class
S2Cell
An S2Cell is an S2Region object that represents a cell.class
S2CellUnion
An S2CellUnion is a region consisting of cells of various sizes.class
S2LatLngRect
S2LatLngRect represents a latitude-longitude rectangle.static class
S2LatLngRect.Builder
This class is a builder for S2LatLngRect instances.class
S2LatLngRectBase
Base class for methods shared between the immutableS2LatLngRect
and the mutableS2LatLngRect.Builder
.class
S2Loop
An S2Loop represents a simple spherical polygon.class
S2Point
An S2Point represents a point on the unit sphere as a 3D vector.class
S2PointRegion
An S2PointRegion is a region that contains a single point.class
S2Polygon
An S2Polygon is an S2Region object that represents a polygon.class
S2Polyline
An S2Polyline represents a sequence of zero or more vertices connected by straight edges (geodesics).class
S2RegionIntersection
An S2RegionIntersection represents an intersection of overlapping regions.class
S2RegionUnion
An S2RegionUnion represents a union of possibly overlapping regions.static class
S2Shape.ReferencePoint
A point with a known containment relationship.class
S2ShapeIndexRegion
This class wraps an S2ShapeIndex object with the additional methods needed to implement the S2Region API, in order to allow S2RegionCoverer to compute S2CellId coverings of arbitrary collections of geometry.Fields in com.google.common.geometry declared as S2Region Modifier and Type Field Description private S2Region
S2ClosestPointQuery. region
The region to restrict closest point search to.(package private) S2Region
S2RegionCoverer.ActiveCovering. region
The region being covered.(package private) S2Region[]
S2RegionIntersection. regions
(package private) S2Region[]
S2RegionUnion. regions
Methods in com.google.common.geometry that return S2Region Modifier and Type Method Description S2Region
S2Cell. clone()
S2Region
S2CellUnion. clone()
S2Region
S2LatLngRect.Builder. clone()
S2Region
S2LatLngRect. clone()
S2Region
S2ClosestPointQuery. getRegion()
Returns the region in which point searches will be done.Methods in com.google.common.geometry with parameters of type S2Region Modifier and Type Method Description private static void
S2RegionCoverer. floodFill(S2Region region, S2CellId start, java.util.ArrayList<S2CellId> output)
Given a region and a starting cell, return the set of all the edge-connected cells at the same level that intersect "region".S2CellUnion
S2RegionCoverer. getCovering(S2Region region)
Return a normalized cell union that covers the given region and satisfies the restrictions *EXCEPT* for minLevel() and levelMod().void
S2RegionCoverer. getCovering(S2Region region, S2CellUnion covering)
void
S2RegionCoverer. getCovering(S2Region region, java.util.ArrayList<S2CellId> covering)
Computes a list of cell ids that covers the given region and satisfies the various restrictions specified above.S2CellUnion
S2RegionCoverer. getInteriorCovering(S2Region region)
Return a normalized cell union that is contained within the given region and satisfies the restrictions *EXCEPT* for minLevel() and levelMod().void
S2RegionCoverer. getInteriorCovering(S2Region region, S2CellUnion covering)
void
S2RegionCoverer. getInteriorCovering(S2Region region, java.util.ArrayList<S2CellId> interior)
Computes a list of cell ids that is contained within the given region and satisfies the various restrictions specified above; note that if the max cell level is not specified very carefully this method can try to create an enormous number of cells, wasting a lot of time and memory, so care should be taken to set a max level suitable for the scale of the region being covered.static void
S2RegionCoverer. getSimpleCovering(S2Region region, S2Point start, int level, java.util.ArrayList<S2CellId> output)
Given a connected region and a starting point, return a set of cells at the given level that cover the region.void
S2ClosestPointQuery. setRegion(S2Region region)
Constructors in com.google.common.geometry with parameters of type S2Region Constructor Description ActiveCovering(boolean interior, S2Region region)
Constructor parameters in com.google.common.geometry with type arguments of type S2Region Constructor Description S2RegionIntersection(java.util.Collection<S2Region> regions)
Create an intersection from a copy ofregions
.S2RegionUnion(java.util.Collection<S2Region> regions)
-