Here you can find the source of toDegrees(radians)
Math.toDegrees = function(radians) { return radians * 180 / Math.PI; };
Math.rad2Deg = function(rad) return (rad / Math.PI) * 180;
function radToDeg(angle) { return ((angle * 180) / Math.PI);
function radToDeg(rad) { return rad / Math.PI * 180;
Number.prototype.toDeg = function() { return this * 180 / Math.PI; Number.prototype.toRad = function() { return this * Math.PI / 180;
Number.prototype.toDeg = function() { return this * 180 / Math.PI;
const degsInRad = 180 / Math.PI, radsInDeg = Math.PI / 180, rad360 = Math.PI * 2; Number.prototype.toDeg = function() { let deg = (this * degsInRad) % 360; if (deg < 0) { if (deg / 360 < -1) { deg += Math.floor((-deg) / 360) * 360 } else { ...
Number.prototype.toDeg = function() { return (this * 180) / Math.PI; };