@danmmx/distance-between-points

1.0.3 • Public • Published

Travis

Calculate distance between two points

Installation

npm install distance-between-points

Usage


import calcDistance from 'distance-between-points'

const pointA = { x: 1, y: 1 }
const pointB = { x: 2, y: 2 }
const distance = calcDistance(pointA, pointB)

Package Sidebar

Install

npm i @danmmx/distance-between-points

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.19 kB

Total Files

9

Last publish

Collaborators

  • danmmx