s2js
    Preparing search index...

    Function fromFacePosLevel

    • Returns a cell id given its face in the range [0,5], the 61-bit Hilbert curve position pos within that face, and the level in the range [0,MAX_LEVEL]. The position in the cell id will be truncated to correspond to the Hilbert curve position at the center of the returned cell.

      Parameters

      • face: number
      • pos: bigint
      • level: number

      Returns bigint