語言

NFloat.Hypot(NFloat, NFloat) 方法

定義

計算斜邊,給定兩個代表直角三角形中較短邊長的值。

public:
 static System::Runtime::InteropServices::NFloat Hypot(System::Runtime::InteropServices::NFloat x, System::Runtime::InteropServices::NFloat y) = System::Numerics::IRootFunctions<System::Runtime::InteropServices::NFloat>::Hypot;
public static System.Runtime.InteropServices.NFloat Hypot(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
static member Hypot : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function Hypot (x As NFloat, y As NFloat) As NFloat

參數

x
NFloat

值為平方,相加於 y。

y
NFloat

值為平方,相加於 x。

傳回

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

實作

適用於