Class S2ShapeIndex.Cell

    • Constructor Detail

      • Cell

        public Cell()
    • Method Detail

      • id

        public long id()
        Description copied from interface: S2Iterator.Entry
        Returns the cell ID of this cell as a primitive.
        Specified by:
        id in interface S2Iterator.Entry
      • numShapes

        public abstract int numShapes()
        Returns the number of clipped shapes in this cell.
      • findClipped

        S2ShapeIndex.S2ClippedShape findClipped​(S2Shape shape)
        Returns the clipped shape corresponding to the given shape ID, or null if the shape does not intersect this cell.