Single.Hypot(Single, Single) 方法

定义

计算给定的两个值,该值表示右角三角形中较短边的长度。

public:
 static float Hypot(float x, float y) = System::Numerics::IRootFunctions<float>::Hypot;
public static float Hypot(float x, float y);
static member Hypot : single * single -> single
Public Shared Function Hypot (x As Single, y As Single) As Single

参数

x
Single

要正方形的值并添加到 y

y
Single

要正方形的值并添加到 x

返回

平方加x平方的y平方根。

实现

适用于