euclidean
v0.0.0
Published
Calculate the Euclidean distance between two points
Downloads
98
Maintainers
Readme
euclidean
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
see also
semibran/manhattan
- calculate Manhattan distancesemibran/chebyshev
- calculate Chebyshev distancesemibran/vector
- more vector math