Calculate the Euclidean distance between two points
This module exposes the function distance(a, b)
, which determines the Euclidean distance between points a
and b
.
> const distance = require('euclidean')
> distance([0, 0], [2, 2])
3
semibran/manhattan
- calculate Manhattan distancesemibran/chebyshev
- calculate Chebyshev distancesemibran/vector
- more vector math