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 S2CellUnionS2ShapeIndexRegion.unionTemporary cell union for internal usage.Methods in com.google.common.geometry that return S2CellUnionModifier and TypeMethodDescriptionstatic S2CellUnionS2CellUnion.decode(LittleEndianInput input) Asdecode(InputStream), but avoids creating a little endian input helper.static S2CellUnionS2CellUnion.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 S2CellUnionS2TextFormat.makeCellUnion(String str) As above, but does not CHECK-fail on invalid input.static S2CellUnionS2TextFormat.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 TypeMethodDescriptionbooleanS2CellUnion.contains(S2CellUnion that) Returns true if this cell union containsthat.voidS2RegionCoverer.getCovering(S2Region region, S2CellUnion covering) voidS2CellUnion.getDifference(S2CellUnion x, S2CellUnion y) Initiaizes this cell union to the difference of the two given cell unions.private voidS2CellUnion.getDifferenceInternal(S2CellId cell, S2CellUnion y) voidS2RegionCoverer.getInteriorCovering(S2Region region, S2CellUnion covering) S2CellIndex.getIntersectingLabels(S2CellUnion target) Returns the distinct sorted labels that intersect the given target.voidS2CellIndex.getIntersectingLabels(S2CellUnion target, S2CellIndex.Labels results) Appends labels intersecting 'target', in unspecified order, with possible duplicates.voidS2CellUnion.getIntersection(S2CellUnion x, S2CellId id) Specialized version of GetIntersection() that gets the intersection of a cell union with the given cell id.voidS2CellUnion.getIntersection(S2CellUnion x, S2CellUnion y) Initializes this cell union to the intersection of the two given cell unions.voidS2CellUnion.getUnion(S2CellUnion x, S2CellUnion y) Sets this cell union to the union ofxandy.booleanS2CellUnion.intersects(S2CellUnion union) Return true if this cell union intersectsunion.static StringS2TextFormat.toString(S2CellUnion cellUnion) Convert an S2CellUnion to the S2TextFormat string representation documented above.booleanS2CellIndex.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.