diff options
Diffstat (limited to 'node_modules/locutus/php/math/hypot.js.map')
-rw-r--r-- | node_modules/locutus/php/math/hypot.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/hypot.js.map b/node_modules/locutus/php/math/hypot.js.map new file mode 100644 index 0000000..a5b8feb --- /dev/null +++ b/node_modules/locutus/php/math/hypot.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/math/hypot.js"],"names":["module","exports","hypot","x","y","Math","abs","t","min","max","sqrt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,CAAhB,EAAmBC,CAAnB,EAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAD,MAAIE,KAAKC,GAAL,CAASH,CAAT,CAAJ;AACAC,MAAIC,KAAKC,GAAL,CAASF,CAAT,CAAJ;;AAEA,MAAIG,IAAIF,KAAKG,GAAL,CAASL,CAAT,EAAYC,CAAZ,CAAR;AACAD,MAAIE,KAAKI,GAAL,CAASN,CAAT,EAAYC,CAAZ,CAAJ;AACAG,MAAIA,IAAIJ,CAAR;;AAEA,SAAOA,IAAIE,KAAKK,IAAL,CAAU,IAAIH,IAAIA,CAAlB,CAAJ,IAA4B,IAAnC;AACD,CAjBD","file":"hypot.js","sourcesContent":["module.exports = function hypot (x, y) {\n // discuss at: http://locutus.io/php/hypot/\n // original by: Onno Marsman (https://twitter.com/onnomarsman)\n // imprived by: Robert Eisele (http://www.xarg.org/)\n // example 1: hypot(3, 4)\n // returns 1: 5\n // example 2: hypot([], 'a')\n // returns 2: null\n\n x = Math.abs(x)\n y = Math.abs(y)\n\n var t = Math.min(x, y)\n x = Math.max(x, y)\n t = t / x\n\n return x * Math.sqrt(1 + t * t) || null\n}\n"]}
\ No newline at end of file |