JSPM

@danmmx/distance-between-points

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q14406F
  • License MIT

Calculate distance between two points

Package Exports

  • @danmmx/distance-between-points

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@danmmx/distance-between-points) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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)