All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.Math.hypot.raw.js Maven / Gradle / Ivy

The newest version!

// Math.hypot
Math.hypot = function hypot() {
	var args = arguments, index = -1, y = 0;

	while (++index in args && Math.abs(y) !== Infinity) {
		y += args[index] * args[index];
	}

	return Math.abs(y) === Infinity ? Infinity : Math.sqrt(y);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy