PROWAREtech
JavaScript: IE11 Math.hypot() Method/Function
Create the Math.hypot() function for Internet Explorer 11.
Still developing for IE11? Well, the Math.hypot()
method in JavaScript is used to calculate the square root of the sum of squares of numbers passed to it as arguments. It is basically used to find the hypotenuse of a right-angled triangle or the magnitude of a complex number.
Math.hypot = Math.hypot || function (x, y) { return Math.sqrt(x * x + y * y); };
Comment