Skip to content

bendrucker/xy-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xy-diff Build Status Greenkeeper badge

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

About

Find the x/y difference between a pair of coordinates

Resources

License

Stars

Watchers

Forks

Packages

No packages published