Uses of Class
com.google.common.geometry.S2PaddedCell
-
Uses of S2PaddedCell in com.google.common.geometry
Methods in com.google.common.geometry that return S2PaddedCellModifier and TypeMethodDescriptionS2PaddedCell.childAtIJ(int i, int j) Construct the child of this cell with the given (i,j) index.S2PaddedCell.childAtPos(int pos) Construct the child of this cell with the given Hilbert curve position, from 0 to 3.Methods in com.google.common.geometry with parameters of type S2PaddedCellModifier and TypeMethodDescriptionprivate voidS2EdgeQuery.clipVAxis(R2Rect edgeBound, double center, int i, S2PaddedCell pCell, R2Vector aVector, R2Vector bVector) Given either the left (i = 0) or right (i = 1) side of a padded cellpCell, determines whether the current edge intersects the lower child, upper child, or both children, and calls getCells() recursively on those children.private voidS2EdgeQuery.getCells(S2PaddedCell pCell, R2Rect edgeBound, R2Vector aVector, R2Vector bVector) Computes the index cells intersected by the current edge that are descendants ofpCell, and adds them tocells.(package private) booleanS2EdgeQuery.getCells(S2Point a, R2Vector aVector, S2Point b, R2Vector bVector, S2PaddedCell root, List<S2ShapeIndex.Cell> cells) Adds all cells tocellsthat might intersect the query edge fromatoband the cellroot.booleanS2EdgeQuery.getCells(S2Point a, S2Point b, S2PaddedCell root, List<S2ShapeIndex.Cell> cells) Convenience method for callingS2EdgeQuery.getCells(S2Point, R2Vector, S2Point, R2Vector, S2PaddedCell, List).(package private) booleanS2ShapeIndex.makeIndexCell(S2PaddedCell pcell, List<S2ShapeIndex.ClippedEdge> edges, S2ShapeIndex.InteriorTracker tracker) Given a cell and a set of ClippedEdges whose bounding boxes intersect that cell, insert or remove all the edges from the index.private voidS2ShapeIndex.updateEdges(S2PaddedCell pcell, List<S2ShapeIndex.ClippedEdge> edges, S2ShapeIndex.InteriorTracker tracker, S2ShapeIndex.EdgeAllocator alloc) Constructors in com.google.common.geometry with parameters of type S2PaddedCellModifierConstructorDescriptionprivateS2PaddedCell(S2PaddedCell parent, int pos, int i, int j) Private constructor to create a new S2PaddedCell for the child at the given (i,j) position.