Function spinoso_math::hypot
source · pub fn hypot(x: f64, y: f64) -> f64
Expand description
Returns sqrt(x**2 + y**2)
, the hypotenuse of a right-angled triangle with
sides x and y.
Examples
use spinoso_math as math;
assert_eq!(math::hypot(3.0, 4.0), 5.0);