Click or drag to resize
DigitalRuneMathHelperHypotenuse Method (Double, Double)
Computes Sqrt(a*a + b*b) without underflow/overflow (double-precision).

Namespace: DigitalRune.Mathematics
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static double Hypotenuse(
	double cathetusA,
	double cathetusB
)

Parameters

cathetusA
Type: SystemDouble
Cathetus a.
cathetusB
Type: SystemDouble
Cathetus b.

Return Value

Type: Double
The hypotenuse c, which is Sqrt(a*a + b*b).
See Also