summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/rad2deg.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/math/rad2deg.js')
-rw-r--r--node_modules/locutus/php/math/rad2deg.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/rad2deg.js b/node_modules/locutus/php/math/rad2deg.js
new file mode 100644
index 0000000..1cdd933
--- /dev/null
+++ b/node_modules/locutus/php/math/rad2deg.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function rad2deg(angle) {
+ // discuss at: http://locutus.io/php/rad2deg/
+ // original by: Enrique Gonzalez
+ // improved by: Brett Zamir (http://brett-zamir.me)
+ // example 1: rad2deg(3.141592653589793)
+ // returns 1: 180
+
+ return angle * 57.29577951308232; // angle / Math.PI * 180
+};
+//# sourceMappingURL=rad2deg.js.map \ No newline at end of file