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

◆ Equals() [2/3]

bool System.Half.Equals ( Half other)
inline

Definition at line 348 of file Half.cs.

349 {
350 if (_value != other._value && !AreZero(this, other))
351 {
352 if (IsNaN(this))
353 {
354 return IsNaN(other);
355 }
356 return false;
357 }
358 return true;
359 }
static bool IsNaN(Half value)
Definition Half.cs:170
readonly ushort _value
Definition Half.cs:15
static bool AreZero(Half left, Half right)
Definition Half.cs:286

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