Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Min() [3/13]

static double System.Math.Min ( double val1,
double val2 )
inlinestatic

Definition at line 928 of file Math.cs.

929 {
930 if (val1 != val2 && !double.IsNaN(val1))
931 {
932 if (!(val1 < val2))
933 {
934 return val2;
935 }
936 return val1;
937 }
938 if (!double.IsNegative(val1))
939 {
940 return val2;
941 }
942 return val1;
943 }