S2CellUnion.normalize

Normalizes the cell union by discarding cells that are contained by other cells, replacing groups of 4 child cells by their parent cell whenever possible, and sorting all the cell ids in increasing order.

Returns true if the number of cells was reduced. TODO(ericv): Change this method to return void.

  1. bool normalize()
    class S2CellUnion
    bool
    normalize
    ()
  2. bool normalize(S2CellId[] ids)

Meta