s2js
    Preparing search index...

    Function distanceFromBegin

    • Returns the number of steps along the Hilbert curve that this cell is from the first node in the S2 hierarchy at our level. (i.e., FromFace(0).ChildBeginAtLevel(ci.Level())). This is analogous to Pos(), but for this cell's level. The return value is always non-negative.

      Parameters

      • ci: bigint

      Returns bigint