s2js
    Preparing search index...

    Function childPosition

    • Returns the child position (0..3) of this cell's ancestor at the given level, relative to its parent. The argument should be in the range 1..MaxLevel. For example, childPosition(1) returns the position of this cell's level-1 ancestor within its top-level face cell.

      Parameters

      • ci: bigint
      • level: number

      Returns number