Lines Matching refs:S2CellId
75 minimumS2LevelUsed = S2CellId.MAX_LEVEL; in reset()
112 ArrayList<S2CellId> cover = Lists.newArrayList(); in computeIndex()
115 for (S2CellId cellId : cover) { in computeIndex()
234 ArrayList<S2CellId> cover = Lists.newArrayList(); in findCandidateCrossings()
256 private static S2CellId containingCell(S2Point pa, S2Point pb, S2Point pc, S2Point pd) { in containingCell()
257 S2CellId a = S2CellId.fromPoint(pa); in containingCell()
258 S2CellId b = S2CellId.fromPoint(pb); in containingCell()
259 S2CellId c = S2CellId.fromPoint(pc); in containingCell()
260 S2CellId d = S2CellId.fromPoint(pd); in containingCell()
263 return S2CellId.sentinel(); in containingCell()
279 private static S2CellId containingCell(S2Point pa, S2Point pb) { in containingCell()
280 S2CellId a = S2CellId.fromPoint(pa); in containingCell()
281 S2CellId b = S2CellId.fromPoint(pb); in containingCell()
284 return S2CellId.sentinel(); in containingCell()
306 S2Point a, S2Point b, boolean thickenEdge, ArrayList<S2CellId> edgeCovering) { in getCovering()
317 S2CellId containingCellId; in getCovering()
321 if (idealLevel == S2CellId.MAX_LEVEL) { in getCovering()
326 containingCellId = (new S2CellId(0xFFF0)).parent(3); in getCovering()
345 if (!containingCellId.equals(S2CellId.sentinel()) in getCovering()
356 for (S2CellId cellid = S2CellId.begin(0); !cellid.equals(S2CellId.end(0)); in getCovering()
371 int actualLevel = Math.min(idealLevel, S2CellId.MAX_LEVEL - 1); in getCovering()
372 S2CellId.fromPoint(middle).getVertexNeighbors(actualLevel, edgeCovering); in getCovering()
422 private void getEdgesInParentCells(List<S2CellId> cover, Set<Integer> candidateCrossings) { in getEdgesInParentCells()
424 Set<S2CellId> parentCells = Sets.newHashSet(); in getEdgesInParentCells()
425 for (S2CellId coverCell : cover) { in getEdgesInParentCells()
435 for (S2CellId parentCell : parentCells) { in getEdgesInParentCells()
491 private void getEdgesInChildrenCells(S2Point a, S2Point b, List<S2CellId> cover, in getEdgesInChildrenCells()
498 S2CellId cell = cover.remove(cover.size() - 1); in getEdgesInChildrenCells()