Calc.Hypot Method

Computes the length of the hypotenuse of a right triangle given the length of the catheti.
public static double Hypot( 
   double x
   double y 
)

Parameters

x
double

Length of first leg.

y
double

Length of second leg.

Return Value

double

The length of the hypotenuse.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition