Iterator.locate

Let T be the target S2CellId. If T is contained by some index cell I (including equality), this method positions the iterator at I and returns INDEXED. Otherwise if T contains one or more (smaller) index cells, it positions the iterator at the first such cell I and returns SUBDIVIDED. Otherwise it returns DISJOINT and leaves the iterator positioned arbitrarily.

  1. bool locate(S2Point target)
  2. CellRelation locate(S2CellId target)
    class Iterator

Meta