Package com.google.common.geometry
Class S2ShapeIndex.Cell.MultiCell
java.lang.Object
com.google.common.geometry.S2ShapeIndex.Cell
com.google.common.geometry.S2ShapeIndex.Cell.MultiCell
- All Implemented Interfaces:
S2Iterator.Entry
,Serializable
- Enclosing class:
S2ShapeIndex.Cell
A specialization of Cell for multiple shapes per cell. Last resort, largest-memory
implementation that is not used very often.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclipped
(int i) Returns the clipped shape at the given index.int
Returns the number of clipped shapes in this cell.Methods inherited from class com.google.common.geometry.S2ShapeIndex.Cell
create, findClipped, id
-
Field Details
-
clippedShapes
-
-
Constructor Details
-
MultiCell
MultiCell(S2ShapeIndex.S2ClippedShape[] shapes)
-
-
Method Details
-
numShapes
public int numShapes()Description copied from class:S2ShapeIndex.Cell
Returns the number of clipped shapes in this cell.- Specified by:
numShapes
in classS2ShapeIndex.Cell
-
clipped
Description copied from class:S2ShapeIndex.Cell
Returns the clipped shape at the given index.- Specified by:
clipped
in classS2ShapeIndex.Cell
- Parameters:
i
- must be at least 0 and less thanS2ShapeIndex.Cell.numShapes()
-