Math<T>.Hypot Method
Gets the length of the hypotenuse of a right-angled
triangle with sides of specified length.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The length of the hypotenuse.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static T Hypot(
T a,
T b
)
Parameters
Return Value
TThe length of the hypotenuse.
Remarks
The calculation of the hypotenuse involves squaring the arguments. Unless special precautions are taken, an overflow may occur during the calculations even if the result is within acceptable bounds.