Field Notes
    Preparing search index...

    Function pathDistanceCells

    • Distance of a polyline in grid cells. Stateful rules (alternate) accumulate over the whole path, so the unit of computation is the path, not a segment; a segment's own cost is cumulative[i] - cumulative[i - 1].

      Parameters

      • points: readonly Point[]
      • grid: GridMetric
      • Optionaloptions: { startDiagonals?: number }

      Returns PathDistance