| MathHelperHypotenuse Method (Double, Double) |
Computes Sqrt(a*a + b*b) without underflow/overflow (double-precision).
Namespace: DigitalRune.MathematicsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static double Hypotenuse(
double cathetusA,
double cathetusB
)
Public Shared Function Hypotenuse (
cathetusA As Double,
cathetusB As Double
) As Double
public:
static double Hypotenuse(
double cathetusA,
double cathetusB
)
static member Hypotenuse :
cathetusA : float *
cathetusB : float -> float
Parameters
- cathetusA
- Type: SystemDouble
Cathetus a. - cathetusB
- Type: SystemDouble
Cathetus b.
Return Value
Type:
DoubleThe hypotenuse c, which is Sqrt(a*a + b*b).
See Also