Click or drag to resize

MoreMathHypot Method

Computes the length of a right triangle's hypotenuse.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.0.5.0 (4.0.5.0)
Syntax
public static double Hypot(
	double x,
	double y
)

Parameters

x
Type: SystemDouble
The length of one side.
y
Type: SystemDouble
The length of another side.

Return Value

Type: Double
The value of sqrt(x2 + y2).
Remarks

The length is computed accurately, even in cases where x2 or y2 would overflow or underflow.

See Also