語言

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。

實作

適用於