diff options
Diffstat (limited to 'node_modules/locutus/php/math/deg2rad.js')
-rw-r--r-- | node_modules/locutus/php/math/deg2rad.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/deg2rad.js b/node_modules/locutus/php/math/deg2rad.js new file mode 100644 index 0000000..9237593 --- /dev/null +++ b/node_modules/locutus/php/math/deg2rad.js @@ -0,0 +1,12 @@ +"use strict"; + +module.exports = function deg2rad(angle) { + // discuss at: http://locutus.io/php/deg2rad/ + // original by: Enrique Gonzalez + // improved by: Thomas Grainger (http://graingert.co.uk) + // example 1: deg2rad(45) + // returns 1: 0.7853981633974483 + + return angle * 0.017453292519943295; // (angle / 180) * Math.PI; +}; +//# sourceMappingURL=deg2rad.js.map
\ No newline at end of file |