threejs-worldgen
    Preparing search index...

    Class MinHeap

    Binary min-heap of ids keyed by priority (ties: insertion order), shared by A* and road growth.

    Index
    • Removes and returns the id with the smallest key.

      Returns number

    • Queues id with priority key.

      Parameters

      • id: number
      • key: number

      Returns void