0.0.1 • Published 6 years ago

where-point-quadrant v0.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

where-point-quadrant

Given one points, it returns where is point at.

EXAMPLE

wherePointQuadrant(point)

var wherePointQuadrant = require('where-point-quadrant');

wherePointQuadrant( {x: 0, y: 0})
// returns origin

wherePointQuadrant( {x: 1, y: 1})
// returns 1

wherePointQuadrant( {x: -1, y: 0})
// returns -x

wherePointQuadrant( {x: 0, y: 1});
// returns y

LICENSE

MIT

0.0.1

6 years ago