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

◆ operator<() [1/3]

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

Definition at line 88 of file Half.cs.

89 {
90 if (IsNaN(left) || IsNaN(right))
91 {
92 return false;
93 }
94 bool flag = IsNegative(left);
95 if (flag != IsNegative(right))
96 {
97 if (flag)
98 {
99 return !AreZero(left, right);
100 }
101 return false;
102 }
103 if (left._value != right._value)
104 {
105 return (left._value < right._value) ^ flag;
106 }
107 return false;
108 }
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().