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

傳回

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

實作

適用於