Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/vtt
index
DiagonalRule
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).
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Field Notes home
Docs
Playground
Field Notes
Loading...
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).