1.0.3 • Published 6 years ago
@danmmx/distance-between-points v1.0.3
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)