manhattanDistance(
first,second):number
Defined in: packages/distance/src/vector-distance.ts:7
Sum the absolute differences between corresponding coordinates. Takes O(n) time and O(1) space.
Parameters
Section titled “Parameters”second
Section titled “second”Returns
Section titled “Returns”number
Throws
Section titled “Throws”With INVALID_DIMENSION or NON_FINITE_COORDINATE.