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: 3.1.0.0 (3.1.0.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 length of the hypotenuse, sqrt(x2 + y2).
Remarks

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

See Also