Single.Hypot(Single, Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算斜邊,給定兩個代表直角三角形中較短邊長的值。
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。