Uses of Class
com.google.common.geometry.S2CellUnion
-
Uses of S2CellUnion in com.google.common.geometry
Fields in com.google.common.geometry declared as S2CellUnionModifier and TypeFieldDescriptionprivate final S2CellUnion
S2ShapeIndexRegion.union
Temporary cell union for internal usage.Methods in com.google.common.geometry that return S2CellUnionModifier and TypeMethodDescriptionstatic S2CellUnion
S2CellUnion.decode
(LittleEndianInput input) Asdecode(InputStream)
, but avoids creating a little endian input helper.static S2CellUnion
S2CellUnion.decode
(InputStream input) Decodes an S2CellUnion encoded with Encode().S2RegionCoverer.getCovering
(S2Region region) Return a normalized cell union that covers the given region and satisfies the restrictions *EXCEPT* for minLevel() and levelMod().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().static S2CellUnion
S2TextFormat.makeCellUnion
(String str) As above, but does not CHECK-fail on invalid input.static S2CellUnion
S2TextFormat.makeCellUnionOrDie
(String str) Parses a comma-separated list of S2CellIds in the format above, and returns the corresponding S2CellUnion.Methods in com.google.common.geometry with parameters of type S2CellUnionModifier and TypeMethodDescriptionboolean
S2CellUnion.contains
(S2CellUnion that) Returns true if this cell union containsthat
.void
S2RegionCoverer.getCovering
(S2Region region, S2CellUnion covering) void
S2CellUnion.getDifference
(S2CellUnion x, S2CellUnion y) Initiaizes this cell union to the difference of the two given cell unions.private void
S2CellUnion.getDifferenceInternal
(S2CellId cell, S2CellUnion y) void
S2RegionCoverer.getInteriorCovering
(S2Region region, S2CellUnion covering) S2CellIndex.getIntersectingLabels
(S2CellUnion target) Returns the distinct sorted labels that intersect the given target.void
S2CellIndex.getIntersectingLabels
(S2CellUnion target, S2CellIndex.Labels results) Appends labels intersecting 'target', in unspecified order, with possible duplicates.void
S2CellUnion.getIntersection
(S2CellUnion x, S2CellId id) Specialized version of GetIntersection() that gets the intersection of a cell union with the given cell id.void
S2CellUnion.getIntersection
(S2CellUnion x, S2CellUnion y) Initializes this cell union to the intersection of the two given cell unions.void
S2CellUnion.getUnion
(S2CellUnion x, S2CellUnion y) Sets this cell union to the union ofx
andy
.boolean
S2CellUnion.intersects
(S2CellUnion union) Return true if this cell union intersectsunion
.static String
S2TextFormat.toString
(S2CellUnion cellUnion) Convert an S2CellUnion to the S2TextFormat string representation documented above.boolean
S2CellIndex.visitIntersectingCells
(S2CellUnion target, S2CellIndex.CellVisitor visitor) Visits all (cellId, label) pairs in the given index that intersect the given S2CellUnion "target" and returns true, or terminates early and returns false ifS2CellIndex.CellVisitor.visit(com.google.common.geometry.S2CellId, int)
ever returns false.