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 142 of file Half.cs.

143 {
144 if (IsNaN(left) || IsNaN(right))
145 {
146 return false;
147 }
148 if (left._value != right._value)
149 {
150 return AreZero(left, right);
151 }
152 return true;
153 }
static bool IsNaN(Half value)
Definition Half.cs:170
static bool AreZero(Half left, Half right)
Definition Half.cs:286

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