public static double CalculateHypotenuse(double X, double Y) { return Math.Sqrt(Math.Pow(X, 2) + Math.Pow(Y, 2)); }