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

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

Parameters

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

Return Value

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