mwg API
    Preparing search index...

    Function neighbourOffsets

    • the four or eight cell offsets around a point, shared by every square-grid algorithm here

      Parameters

      • topology: 4 | 8

      Returns readonly (readonly [number, number])[]