Calculate the Chebyshev distance between two points
This module exposes the function chebyshev(a, b)
, which determines the Chebyshev distance between points a
and b
.
> const distance = require('chebyshev')
> distance([6, 6], [5, 2])
4
semibran/euclidean
- calculate Euclidean distancesemibran/manhattan
- calculate Manhattan distancesemibran/vector
- more vector mathhughsk/moore
- find all points within a given Chebyshev distance