xy-diff

1.0.0 • Public • Published

xy-diff Build Status

Find the x/y difference between a pair of coordinates

Install

$ npm install --save xy-diff

Usage

var xyDiff = require('xy-diff')
 
xyDiff({x: 0, y: 10}, {x: 10, y: 100})
//=> {x: 10, y: 90}

API

xyDiff(coord1, coord2) -> object

coord1 / coord2

Required
Type: object

A set of x/y number pairs.

License

MIT © Ben Drucker

Readme

Keywords

Package Sidebar

Install

npm i xy-diff

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker