method

hypot

v2_4_6 - Show latest stable - Class: Math
hypot(p1, p2)
public

Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle with sides x and y.

Math.hypot(3, 4)   #=> 5.0