Here you can find the source of radians(degrees)
Math.radians = function(degrees){ return degrees * Math.PI / 180; };
Math.deg2Rad = function(deg) return (deg / 180) * Math.PI;
function degToRad(angle) { return ((angle * Math.PI) / 180);
function degToRad(deg) { return deg * Math.PI / 180;
Math.toRadians = function(degrees){ if (degrees < 0) { degrees += 360; return degrees / 180 * Math.PI; };
Math.degrees = function(radians){ return radians * 180 / Math.PI; };
Math.degToRad = function(degrees){ return degrees * Math.PI / 180; };
Number.prototype.toRad = function() { return this * Math.PI / 180;
Number.prototype.toRad = function() { return this * Math.PI / 180; Number.prototype.toDeg = function() { return this * 180 / Math.PI;
Number.prototype.toRad = function() { return this * Math.PI / 180; }; Number.prototype.toDegree = function() { return this / Math.PI * 180; };