1.0.0 • Published 7 years ago

manhattan v1.0.0

Weekly downloads
48
License
MIT
Repository
github
Last release
7 years ago

manhattan

Calculate the Manhattan distance between two points

Manhattan distance

This module exposes the function distance(a, b), which determines the Manhattan distance between points a and b.

> const distance = require('manhattan')
> distance([2, 5], [4, 8])
5

NPM

see also

license

MIT © Brandon Semilla