1.0.0 • Published 6 years ago
@codewell/distance v1.0.0
@codewell/distance
Calculates the distance between two coordinates {x: x1, y: y1} and {x: x2, y: y2}.
Installation
npm install @codewell/distanceBasic usage
import distance from '@codewell/distance';
const distance({x: 1, y: 1}, {x: 4, y: 5}); // => 51.0.0
6 years ago