diff options
Diffstat (limited to 'node_modules/locutus/php/math/atan2.js')
-rw-r--r-- | node_modules/locutus/php/math/atan2.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/atan2.js b/node_modules/locutus/php/math/atan2.js new file mode 100644 index 0000000..3e10515 --- /dev/null +++ b/node_modules/locutus/php/math/atan2.js @@ -0,0 +1,11 @@ +"use strict"; + +module.exports = function atan2(y, x) { + // discuss at: http://locutus.io/php/atan2/ + // original by: Brett Zamir (http://brett-zamir.me) + // example 1: atan2(1, 1) + // returns 1: 0.7853981633974483 + + return Math.atan2(y, x); +}; +//# sourceMappingURL=atan2.js.map
\ No newline at end of file |