chebyshev
v0.2.1
Published
Determine the Chebyshev distance between two points
Downloads
113
Maintainers
Readme
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