Field Notes
    Preparing search index...

    Type Alias DiagonalRule

    DiagonalRule: "euclidean" | "chebyshev" | "alternate" | "manhattan"

    How diagonal steps are costed on a SQUARE grid, in cells.

    • euclidean — straight-line distance over the cell size (the ruler's behaviour; default).
    • chebyshev — a diagonal step costs one cell.
    • alternate — diagonals alternate 1, 2, 1, 2 … cells ("5-10-5"), counted over the WHOLE path.
    • manhattan — a diagonal step costs two cells. Ignored on hex grids (hex distance is the cube metric).