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平方根。

实现

适用于