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