s2js
    Preparing search index...

    Function edgeNeighbors

    • Returns the four cells that are adjacent across the cell's four edges. Edges 0, 1, 2, 3 are in the down, right, up, left directions in the face space. All neighbors are guaranteed to be distinct.

      Parameters

      • ci: bigint

      Returns [bigint, bigint, bigint, bigint]