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)
Show source
static VALUE
math_hypot(VALUE obj, VALUE x, VALUE y)
{
Need_Float2(x, y);
return DBL2NUM(hypot(RFLOAT_VALUE(x), RFLOAT_VALUE(y)));
}