Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MaxMagnitude()

static double System.Math.MaxMagnitude ( double x,
double y )
inlinestatic

Definition at line 892 of file Math.cs.

893 {
894 double num = Abs(x);
895 double num2 = Abs(y);
896 if (num > num2 || double.IsNaN(num))
897 {
898 return x;
899 }
900 if (num == num2)
901 {
902 if (!double.IsNegative(x))
903 {
904 return x;
905 }
906 return y;
907 }
908 return y;
909 }
static double Abs(double value)

References System.Math.Abs().

Referenced by System.Double.MaxMagnitude().