0.0.0 • Published 7 years ago
euclidean v0.0.0
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
license
0.0.0
7 years ago