@codewell/distance
v1.0.0
Published
Distance between two coordinates
Downloads
4
Readme
@codewell/distance
Calculates the distance between two coordinates {x: x1, y: y1}
and {x: x2, y: y2}
.
Installation
npm install @codewell/distance
Basic usage
import distance from '@codewell/distance';
const distance({x: 1, y: 1}, {x: 4, y: 5}); // => 5