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

◆ operator<=() [1/3]

static bool System.Half.operator<= ( Half left,
Half right )
inlinestatic

Definition at line 115 of file Half.cs.

116 {
117 if (IsNaN(left) || IsNaN(right))
118 {
119 return false;
120 }
121 bool flag = IsNegative(left);
122 if (flag != IsNegative(right))
123 {
124 if (!flag)
125 {
126 return AreZero(left, right);
127 }
128 return true;
129 }
130 if (left._value != right._value)
131 {
132 return (left._value < right._value) ^ flag;
133 }
134 return true;
135 }
static bool IsNaN(Half value)
Definition Half.cs:170
static bool IsNegative(Half value)
Definition Half.cs:175
static bool AreZero(Half left, Half right)
Definition Half.cs:286

References System.Half._value, System.Half.AreZero(), System.Half.IsNaN(), and System.Half.IsNegative().