pub fn hypot(x: f64, y: f64) -> f64
The Math.hypot() function returns the square root of the sum of squares of its arguments.
Math.hypot()
MDN documentation