hypot

hypot

> Functions

Returns the hypotenuse of the right triangle with sides x* and *y. Equivalent to sqrt(x2 + y2).

Parameters
Return
Examples

hypot(1, 1) // sqrt(2) hypot(3, 4) // 5

See as well