Uses of Class
com.google.common.geometry.S2PaddedCell
-
-
Uses of S2PaddedCell in com.google.common.geometry
Methods in com.google.common.geometry that return S2PaddedCell Modifier and Type Method Description S2PaddedCell
S2PaddedCell. childAtIJ(int i, int j)
Construct the child of this cell with the given (i,j) index.S2PaddedCell
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 S2PaddedCell Modifier and Type Method Description private void
S2EdgeQuery. 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 void
S2EdgeQuery. 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) boolean
S2EdgeQuery. getCells(S2Point a, R2Vector aVector, S2Point b, R2Vector bVector, S2PaddedCell root, java.util.List<S2ShapeIndex.Cell> cells)
Adds all cells tocells
that might intersect the query edge froma
tob
and the cellroot
.boolean
S2EdgeQuery. getCells(S2Point a, S2Point b, S2PaddedCell root, java.util.List<S2ShapeIndex.Cell> cells)
Convenience method for callingS2EdgeQuery.getCells(S2Point, R2Vector, S2Point, R2Vector, S2PaddedCell, List)
.(package private) boolean
S2ShapeIndex. makeIndexCell(S2PaddedCell pcell, java.util.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 void
S2ShapeIndex. updateEdges(S2PaddedCell pcell, java.util.List<S2ShapeIndex.ClippedEdge> edges, S2ShapeIndex.InteriorTracker tracker, S2ShapeIndex.EdgeAllocator alloc)
Constructors in com.google.common.geometry with parameters of type S2PaddedCell Constructor Description S2PaddedCell(S2PaddedCell parent, int pos, int i, int j)
Private constructor to create a new S2PaddedCell for the child at the given (i,j) position.
-