共用方式為


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

傳回

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

實作

適用於