Function S2CellId.advanceWrap

This method advances or retreats the indicated number of steps along the Hilbert curve at the current level, and returns the new position. The position wraps between the first and last faces as necessary. The input must be a valid cell id.

S2CellId advanceWrap (
  long steps
) const;