Skip to content

jieli-fe/angle-to-direction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

angle-transform-direction

角度弧度转方向

安装:

npm install angle-transform-direction --save

使用:

var tans = require('angle-transform-direction');

console.log(tans.degree(50)); // "North East"
console.log(tans.degreeAbbr(50)); // "NE"
console.log(tans.degreeCn(50)); // "东北"
 
console.log(tans.radian(50 / 180 * Math.PI)); // "North East"
console.log(tans.radianAbbr(50 / 180 * Math.PI)); // "NE"
console.log(tans.radianCn(50 / 180 * Math.PI)); // "东北"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published