hypot

hypot

> 函数列表

返回两条直角边分别为 x* 和 *y 的直角三角形的斜边长度。 等价于 sqrt(x * 2 + y * 2)。

参数
返回值
示例

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

另请参阅