Lines Matching refs:S2CellId
95 ArrayList<S2CellId> result;
141 maxLevel = S2CellId.MAX_LEVEL; in S2RegionCoverer()
145 result = new ArrayList<S2CellId>(); in S2RegionCoverer()
170 this.minLevel = Math.max(0, Math.min(S2CellId.MAX_LEVEL, minLevel)); in setMinLevel()
178 this.maxLevel = Math.max(0, Math.min(S2CellId.MAX_LEVEL, maxLevel)); in setMaxLevel()
251 public void getCovering(S2Region region, ArrayList<S2CellId> covering) { in getCovering()
271 public void getInteriorCovering(S2Region region, ArrayList<S2CellId> interior) { in getInteriorCovering()
317 S2Region region, S2Point start, int level, ArrayList<S2CellId> output) { in getSimpleCovering()
318 floodFill(region, S2CellId.fromPoint(start).parent(level), output); in getSimpleCovering()
448 Math.min(maxLevel(), S2CellId.MAX_LEVEL - 1)); in getInitialCandidates()
457 ArrayList<S2CellId> base = new ArrayList<S2CellId>(4); in getInitialCandidates()
458 S2CellId id = S2CellId.fromPoint(cap.axis()); in getInitialCandidates()
522 private static void floodFill(S2Region region, S2CellId start, ArrayList<S2CellId> output) { in floodFill()
523 HashSet<S2CellId> all = new HashSet<S2CellId>(); in floodFill()
524 ArrayList<S2CellId> frontier = new ArrayList<S2CellId>(); in floodFill()
529 S2CellId id = frontier.get(frontier.size() - 1); in floodFill()
536 S2CellId[] neighbors = new S2CellId[4]; in floodFill()
539 S2CellId nbr = neighbors[edge]; in floodFill()