s2js
    Preparing search index...

    Function vertexNeighbors

    • Returns the neighboring cellIDs with vertex closest to this cell at the given level. (Normally there are four neighbors, but the closest vertex may only have three neighbors if it is one of the 8 cube vertices.)

      Parameters

      • ci: bigint
      • level: number

      Returns bigint[]