js_sys::Math

Function hypot

Source
pub fn hypot(x: f64, y: f64) -> f64
Expand description

The Math.hypot() function returns the square root of the sum of squares of its arguments.

MDN documentation