Point. Function.manhattan Distance
sprotty-protocol / Point / manhattanDistance
manhattanDistance(
a
,b
):number
Defined in: utils/geometry.ts:140
Returns the distance between two points in a grid, using a strictly vertical and/or horizontal path (versus straight line).
First point
Second point
number
The Manhattan distance