Function S2RegionCoverer.floodFill

Given a region and a starting cell, returns the set of all the edge-connected cells at the same level that intersect "region". The output cells are returned in arbitrary order.

static void floodFill (
  S2Region region,
  S2CellId start,
  out S2CellId[] output
);