Node.js examples for Geometry:Radian
Convert degree to Radians
Math.toRadians = function(degrees){ if (degrees < 0) { degrees += 360;/*from ww w.java 2 s.co m*/ } return degrees / 180 * Math.PI; };