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

◆ MinMagnitude()

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

Definition at line 1058 of file Math.cs.

1059 {
1060 double num = Abs(x);
1061 double num2 = Abs(y);
1062 if (num < num2 || double.IsNaN(num))
1063 {
1064 return x;
1065 }
1066 if (num == num2)
1067 {
1068 if (!double.IsNegative(x))
1069 {
1070 return y;
1071 }
1072 return x;
1073 }
1074 return y;
1075 }
static double Abs(double value)

References System.Math.Abs().

Referenced by System.Double.MinMagnitude().