1.0.0 • Published 5 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/distance
Basic usage
import distance from '@codewell/distance';
const distance({x: 1, y: 1}, {x: 4, y: 5}); // => 5
1.0.0
5 years ago