Uses of Class
com.google.common.geometry.S2ShapeIndex.S2ClippedShape
-
Uses of S2ShapeIndex.S2ClippedShape in com.google.common.geometry
Subclasses of S2ShapeIndex.S2ClippedShape in com.google.common.geometryModifier and TypeClassDescriptionprivate static class
An S2ClippedShape for a shape that completely contains the cell (no edge intersections and containsCenter is true.)private static class
An S2ClippedShape containing a single range of contiguous edge IDs.private static class
An S2ClippedShape that contains the non-contiguous edges fromstart
toend
inedges
.private static class
An S2ClippedShape that contains a single edge from a given shape.Fields in com.google.common.geometry declared as S2ShapeIndex.S2ClippedShapeModifier and TypeFieldDescriptionprivate S2ShapeIndex.S2ClippedShape[]
S2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell.cachedClippedShapes
(package private) final S2ShapeIndex.S2ClippedShape
S2EdgeQuery.Stepper.clipped
private S2ShapeIndex.S2ClippedShape
S2ShapeIndex.RangeIterator.clipped
private final S2ShapeIndex.S2ClippedShape[]
S2ShapeIndex.Cell.MultiCell.clippedShapes
(package private) final S2ShapeIndex.S2ClippedShape
S2EdgeQuery.SimpleEdges.shape
private final S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.BinaryCell.shape1
private final S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.BinaryCell.shape2
private final S2ShapeIndex.S2ClippedShape[]
S2ShapeIndex.InteriorTracker.tempClippedShapes
A temporary array in which to accumulate the clipped shapes for each cell.Methods in com.google.common.geometry that return S2ShapeIndex.S2ClippedShapeModifier and TypeMethodDescriptionS2ShapeIndex.Cell.BinaryCell.clipped
(int i) abstract S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.clipped
(int i) Returns the clipped shape at the given index.S2ShapeIndex.Cell.MultiCell.clipped
(int i) S2ShapeIndex.RangeIterator.clipped()
Various other convenience methods for the current cell.S2ShapeIndex.S2ClippedShape.clipped
(int i) For implementing the Cell interface, this class contains just 1 shape (itself.)S2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell.clipped
(int i) (package private) static S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape.create
(S2CellId cellId, S2Shape shape, boolean containsCenter, int[] edges) (package private) static S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape.create
(S2CellId cellId, S2Shape shape, boolean containsCenter, int offset, int count) (package private) static S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape.create
(S2CellId cellId, S2Shape shape, boolean containsCenter, List<S2ShapeIndex.ClippedEdge> edges, int start, int end) private static S2ShapeIndex.S2ClippedShape[]
S2ShapeIndexCoder.decodeClippedShapes
(List<S2Shape> shapes, PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) (package private) S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.findClipped
(S2Shape shape) Returns the clipped shape corresponding to the given shape ID, or null if the shape does not intersect this cell.private S2ShapeIndex.S2ClippedShape[]
S2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell.loadClippedShapesFromCache()
ReturnsS2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell.cachedClippedShapes
if it's already cached.Methods in com.google.common.geometry with parameters of type S2ShapeIndex.S2ClippedShapeModifier and TypeMethodDescriptionvoid
S2EdgeQuery.MergedEdges.add
(S2ShapeIndex.S2ClippedShape shape) Note:shape
should have at least one edge.private boolean
S2ShapeIndexRegion.anyEdgeIntersects
(S2ShapeIndex.S2ClippedShape clipped, S2Cell target) Returns true if any edge of the indexed shape "clipped" intersects the cell "target".private boolean
S2Loop.LoopCrosser.cellCrossesAnySubcell
(S2ShapeIndex.S2ClippedShape aClipped, S2CellId bId) Given an index cell of A, returns true if there are any edge or wedge crossings with any index cell of B contained withinbId
.boolean
S2Loop.LoopCrosser.cellCrossesCell
(S2ShapeIndex.S2ClippedShape aClipped, S2ShapeIndex.S2ClippedShape bClipped) Given two index cells, returns true if there are any edge crossings or wedge crossings within those cells.(package private) static S2ShapeIndex.Cell
S2ShapeIndex.Cell.create
(int size, S2ShapeIndex.S2ClippedShape[] tempClippedShapes) Returns a Cell with a copy of the given shapes, specialized for the number of elements.private boolean
S2Loop.LoopCrosser.edgeCrossesCell
(S2ShapeIndex.S2ClippedShape bClipped) Checks the current edge of loop A for crossings with all edges of the given index cell of loop B.private static void
S2ShapeIndexCoder.encodeEdges
(S2ShapeIndex.S2ClippedShape clipped, OutputStream output) Encodes the edge IDs of the givenS2ShapeIndex.S2ClippedShape
.static boolean
S2ShapeUtil.equals
(S2ShapeIndex.S2ClippedShape a, S2ShapeIndex.S2ClippedShape b) Returns true if the clipped shapes 'a' and 'b' have identical edge offsets.(package private) static boolean
S2ShapeUtil.findSelfIntersection
(S2ShapeIndex.S2ClippedShape aClipped, S2Loop aLoop, S2Error error) Test for crossings between all edge pairs that do not share a vertex.boolean
S2ContainsPointQuery.S2VertexModel.shapeContains
(S2Point cellCenter, S2ShapeIndex.S2ClippedShape clipped, S2Point p) Returns true if the clipped portion of a shape 'clipped' from a cell with center 'cellCenter' contains the point 'p' according to this vertex model.Constructors in com.google.common.geometry with parameters of type S2ShapeIndex.S2ClippedShapeModifierConstructorDescription(package private)
BinaryCell
(S2ShapeIndex.S2ClippedShape shape1, S2ShapeIndex.S2ClippedShape shape2) (package private)
MultiCell
(S2ShapeIndex.S2ClippedShape[] shapes) (package private)
(package private)