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 classS2CapS2Cap represents a disc-shaped region defined by a center and radius.classS2CellAn S2Cell is an S2Region object that represents a cell.classS2CellUnionAn S2CellUnion is a region consisting of cells of various sizes.classS2LatLngRectS2LatLngRect represents a latitude-longitude rectangle.static classS2LatLngRect.BuilderThis class is a builder for S2LatLngRect instances.classS2LatLngRectBaseBase class for methods shared between the immutableS2LatLngRectand the mutableS2LatLngRect.Builder.classS2LoopAn S2Loop represents a simple spherical polygon.classS2PointAn S2Point represents a point on the unit sphere as a 3D vector.classS2PointRegionAn S2PointRegion is a region that contains a single point.classS2PolygonAn S2Polygon is an S2Region object that represents a polygon.classS2PolylineAn S2Polyline represents a sequence of zero or more vertices connected by straight edges (geodesics).classS2RegionIntersectionAn S2RegionIntersection represents an intersection of overlapping regions.classS2RegionUnionAn S2RegionUnion represents a union of possibly overlapping regions.static classS2Shape.ReferencePointA point with a known containment relationship.classS2ShapeIndexRegionThis 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.Methods in com.google.common.geometry that return S2Region Modifier and Type Method Description S2RegionS2Cell. clone()S2RegionS2CellUnion. clone()S2RegionS2LatLngRect.Builder. clone()S2RegionS2LatLngRect. clone()S2RegionS2ClosestPointQuery. 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 S2CellUnionS2RegionCoverer. getCovering(S2Region region)Return a normalized cell union that covers the given region and satisfies the restrictions *EXCEPT* for minLevel() and levelMod().voidS2RegionCoverer. getCovering(S2Region region, S2CellUnion covering)voidS2RegionCoverer. getCovering(S2Region region, ArrayList<S2CellId> covering)Computes a list of cell ids that covers the given region and satisfies the various restrictions specified above.S2CellUnionS2RegionCoverer. getInteriorCovering(S2Region region)Return a normalized cell union that is contained within the given region and satisfies the restrictions *EXCEPT* for minLevel() and levelMod().voidS2RegionCoverer. getInteriorCovering(S2Region region, S2CellUnion covering)voidS2RegionCoverer. getInteriorCovering(S2Region region, 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 voidS2RegionCoverer. getSimpleCovering(S2Region region, S2Point start, int level, ArrayList<S2CellId> output)Given a connected region and a starting point, return a set of cells at the given level that cover the region.voidS2ClosestPointQuery. setRegion(S2Region region)Constructor parameters in com.google.common.geometry with type arguments of type S2Region Constructor Description S2RegionIntersection(Collection<S2Region> regions)Create an intersection from a copy ofregions.S2RegionUnion(Collection<S2Region> regions)
-