1.0.0 • Published 9 years ago

angle-between-points v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

angle-between-points

Given two points, it returns the angle in degrees from one to the other.

NPM

build status

EXAMPLE

angleBetweenPoints(point1, point2)

var angleBetweenPoints = require('angle-between-points');

angleBetweenPoints( {x: 1, y: 1}, {x: 4, y: 4} );
// returns 45

angleBetweenPoints( {x: 2, y: 2}, {x: -4, y: -4} );
// returns 225

angleBetweenPoints( {x: 2, y: 0}, {x: -4, y: 0} );
// returns 180

LICENSE

MIT

1.0.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago