Skip to content

vanshady/angle-to-direction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

npm install angle-to-direction -S

Usage

var a2d = require('angle-to-direction');

console.log(a2d.degree(50)); // "North East"
console.log(a2d.degreeAbbr(50)); // "NE"
 
console.log(a2d.radian(50 / 180 * Math.PI)); // "North East"
console.log(a2d.radianAbbr(50 / 180 * Math.PI)); // "NE"

About

This npm package can convert angle to direction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published