0.2.1 • Published 7 years ago
chebyshev v0.2.1
chebyshev
This module exposes the function chebyshev(a, b)
, which determines the Chebyshev distance between points a
and b
.
> const chebyshev = require('chebyshev')
> chebyshev([6, 6], [5, 2])
4
see also
semibran/vector
- more vector mathhughsk/moore
- find all points within a given Chebyshev distance