@codewell/distance

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @codewell/distance

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.67 kB

Total Files

4

Last publish

Collaborators

  • fippli