Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Half Struct Reference

Public Member Functions

int CompareTo (object? obj)
 
int CompareTo (Half other)
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (Half other)
 
override int GetHashCode ()
 
override string ToString ()
 
string ToString (string? format)
 
string ToString (IFormatProvider? provider)
 
string ToString (string? format, IFormatProvider? provider)
 
bool TryFormat (Span< char > destination, out int charsWritten, ReadOnlySpan< char > format=default(ReadOnlySpan< char >), IFormatProvider? provider=null)
 
int CompareTo (T? other)
 
int CompareTo (T? other)
 
bool Equals (T? other)
 

Static Public Member Functions

static bool operator< (Half left, Half right)
 
static bool operator> (Half left, Half right)
 
static bool operator<= (Half left, Half right)
 
static bool operator>= (Half left, Half right)
 
static bool operator== (Half left, Half right)
 
static bool operator!= (Half left, Half right)
 
static bool IsFinite (Half value)
 
static bool IsInfinity (Half value)
 
static bool IsNaN (Half value)
 
static bool IsNegative (Half value)
 
static bool IsNegativeInfinity (Half value)
 
static bool IsNormal (Half value)
 
static bool IsPositiveInfinity (Half value)
 
static bool IsSubnormal (Half value)
 
static Half Parse (string s)
 
static Half Parse (string s, NumberStyles style)
 
static Half Parse (string s, IFormatProvider? provider)
 
static Half Parse (string s, NumberStyles style=NumberStyles.Float|NumberStyles.AllowThousands, IFormatProvider? provider=null)
 
static Half Parse (ReadOnlySpan< char > s, NumberStyles style=NumberStyles.Float|NumberStyles.AllowThousands, IFormatProvider? provider=null)
 
static bool TryParse ([NotNullWhen(true)] string? s, out Half result)
 
static bool TryParse (ReadOnlySpan< char > s, out Half result)
 
static bool TryParse ([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Half result)
 
static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out Half result)
 
static operator Half (float value)
 
static operator Half (double value)
 
static operator float (Half value)
 
static operator double (Half value)
 
static Half IAdditionOperators< Half, Half, Half >. operator+ (Half left, Half right)
 
static bool IBinaryNumber< Half >. IsPow2 (Half value)
 
static Half IBinaryNumber< Half >. Log2 (Half value)
 
static Half IBitwiseOperators< Half, Half, Half >. operator& (Half left, Half right)
 
static Half IBitwiseOperators< Half, Half, Half >. operator| (Half left, Half right)
 
static Half IBitwiseOperators< Half, Half, Half >. operator^ (Half left, Half right)
 
static Half IBitwiseOperators< Half, Half, Half >. operator~ (Half value)
 
static bool IComparisonOperators< Half, Half >. operator< (Half left, Half right)
 
static bool IComparisonOperators< Half, Half >. operator<= (Half left, Half right)
 
static bool IComparisonOperators< Half, Half >. operator> (Half left, Half right)
 
static bool IComparisonOperators< Half, Half >. operator>= (Half left, Half right)
 
static Half IDecrementOperators< Half >. operator-- (Half value)
 
static bool IEqualityOperators< Half, Half >. operator== (Half left, Half right)
 
static bool IEqualityOperators< Half, Half >. operator!= (Half left, Half right)
 
static Half IDivisionOperators< Half, Half, Half >. operator/ (Half left, Half right)
 
static Half IFloatingPoint< Half >. Acos (Half x)
 
static Half IFloatingPoint< Half >. Acosh (Half x)
 
static Half IFloatingPoint< Half >. Asin (Half x)
 
static Half IFloatingPoint< Half >. Asinh (Half x)
 
static Half IFloatingPoint< Half >. Atan (Half x)
 
static Half IFloatingPoint< Half >. Atan2 (Half y, Half x)
 
static Half IFloatingPoint< Half >. Atanh (Half x)
 
static Half IFloatingPoint< Half >. BitIncrement (Half x)
 
static Half IFloatingPoint< Half >. BitDecrement (Half x)
 
static Half IFloatingPoint< Half >. Cbrt (Half x)
 
static Half IFloatingPoint< Half >. Ceiling (Half x)
 
static Half IFloatingPoint< Half >. CopySign (Half x, Half y)
 
static Half IFloatingPoint< Half >. Cos (Half x)
 
static Half IFloatingPoint< Half >. Cosh (Half x)
 
static Half IFloatingPoint< Half >. Exp (Half x)
 
static Half IFloatingPoint< Half >. Floor (Half x)
 
static Half IFloatingPoint< Half >. FusedMultiplyAdd (Half left, Half right, Half addend)
 
static Half IFloatingPoint< Half >. IEEERemainder (Half left, Half right)
 
static TInteger IFloatingPoint< Half >. ILogB< TInteger > (Half x)
 
static Half IFloatingPoint< Half >. Log (Half x)
 
static Half IFloatingPoint< Half >. Log (Half x, Half newBase)
 
static Half IFloatingPoint< Half >. Log2 (Half x)
 
static Half IFloatingPoint< Half >. Log10 (Half x)
 
static Half IFloatingPoint< Half >. MaxMagnitude (Half x, Half y)
 
static Half IFloatingPoint< Half >. MinMagnitude (Half x, Half y)
 
static Half IFloatingPoint< Half >. Pow (Half x, Half y)
 
static Half IFloatingPoint< Half >. Round (Half x)
 
static Half IFloatingPoint< Half >. Round< TInteger > (Half x, TInteger digits)
 
static Half IFloatingPoint< Half >. Round (Half x, MidpointRounding mode)
 
static Half IFloatingPoint< Half >. Round< TInteger > (Half x, TInteger digits, MidpointRounding mode)
 
static Half IFloatingPoint< Half >. ScaleB< TInteger > (Half x, TInteger n)
 
static Half IFloatingPoint< Half >. Sin (Half x)
 
static Half IFloatingPoint< Half >. Sinh (Half x)
 
static Half IFloatingPoint< Half >. Sqrt (Half x)
 
static Half IFloatingPoint< Half >. Tan (Half x)
 
static Half IFloatingPoint< Half >. Tanh (Half x)
 
static Half IFloatingPoint< Half >. Truncate (Half x)
 
static bool IFloatingPoint< Half >. IsFinite (Half x)
 
static bool IFloatingPoint< Half >. IsInfinity (Half x)
 
static bool IFloatingPoint< Half >. IsNaN (Half x)
 
static bool IFloatingPoint< Half >. IsNegative (Half x)
 
static bool IFloatingPoint< Half >. IsNegativeInfinity (Half x)
 
static bool IFloatingPoint< Half >. IsNormal (Half x)
 
static bool IFloatingPoint< Half >. IsPositiveInfinity (Half x)
 
static bool IFloatingPoint< Half >. IsSubnormal (Half x)
 
static Half IIncrementOperators< Half >. operator++ (Half value)
 
static Half IModulusOperators< Half, Half, Half >. operator% (Half left, Half right)
 
static Half IMultiplyOperators< Half, Half, Half >. operator* (Half left, Half right)
 
static Half INumber< Half >. Abs (Half value)
 
static Half INumber< Half >. Clamp (Half value, Half min, Half max)
 
static Half INumber< Half >. Create< TOther > (TOther value)
 
static Half INumber< Half >. CreateSaturating< TOther > (TOther value)
 
static Half INumber< Half >. CreateTruncating< TOther > (TOther value)
 
static Half Half Remainder INumber< Half >. DivRem (Half left, Half right)
 
static Half INumber< Half >. Max (Half x, Half y)
 
static Half INumber< Half >. Min (Half x, Half y)
 
static Half INumber< Half >. Parse (string s, NumberStyles style, IFormatProvider provider)
 
static Half INumber< Half >. Parse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider)
 
static Half INumber< Half >. Sign (Half value)
 
static bool INumber< Half >. TryCreate< TOther > (TOther value, out Half result)
 
static bool INumber< Half >. TryParse ([NotNullWhen(true)] string s, NumberStyles style, IFormatProvider provider, out Half result)
 
static bool INumber< Half >. TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider provider, out Half result)
 
static Half IParseable< Half >. Parse (string s, IFormatProvider provider)
 
static bool IParseable< Half >. TryParse ([NotNullWhen(true)] string s, IFormatProvider provider, out Half result)
 
static Half ISpanParseable< Half >. Parse (ReadOnlySpan< char > s, IFormatProvider provider)
 
static bool ISpanParseable< Half >. TryParse (ReadOnlySpan< char > s, IFormatProvider provider, out Half result)
 
static Half ISubtractionOperators< Half, Half, Half >. operator- (Half left, Half right)
 
static Half IUnaryNegationOperators< Half, Half >. operator- (Half value)
 
static Half IUnaryPlusOperators< Half, Half >. operator+ (Half value)
 
static bool IsPow2 (TSelf value)
 
static TSelf Log2 (TSelf value)
 
static TResult operator& (TSelf left, TOther right)
 
static TResult operator| (TSelf left, TOther right)
 
static TResult operator^ (TSelf left, TOther right)
 
static TResult operator~ (TSelf value)
 
static TSelf Abs (TSelf value)
 
static TSelf Clamp (TSelf value, TSelf min, TSelf max)
 
static TSelf TSelf Remainder DivRem (TSelf left, TSelf right)
 
static TSelf Max (TSelf x, TSelf y)
 
static TSelf Min (TSelf x, TSelf y)
 
static TSelf Parse (string s, NumberStyles style, IFormatProvider? provider)
 
static TSelf Parse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider)
 
static TSelf Sign (TSelf value)
 
static bool TryCreate< TOther > (TOther value, out TSelf result)
 
static bool TryParse ([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out TSelf result)
 
static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out TSelf result)
 
static TResult operator+ (TSelf left, TOther right)
 
static bool operator< (TSelf left, TOther right)
 
static bool operator<= (TSelf left, TOther right)
 
static bool operator> (TSelf left, TOther right)
 
static bool operator>= (TSelf left, TOther right)
 
static bool operator== (TSelf left, TOther right)
 
static bool operator!= (TSelf left, TOther right)
 
static TSelf operator-- (TSelf value)
 
static TResult operator/ (TSelf left, TOther right)
 
static TSelf operator++ (TSelf value)
 
static TResult operator% (TSelf left, TOther right)
 
static TResult operator* (TSelf left, TOther right)
 
static TSelf Parse (ReadOnlySpan< char > s, IFormatProvider? provider)
 
static bool TryParse (ReadOnlySpan< char > s, IFormatProvider? provider, out TSelf result)
 
static bool TryParse ([NotNullWhen(true)] string? s, IFormatProvider? provider, out TSelf result)
 
static TResult operator- (TSelf left, TOther right)
 
static TResult operator- (TSelf value)
 
static TResult operator+ (TSelf value)
 
static TSelf Acos (TSelf x)
 
static TSelf Acosh (TSelf x)
 
static TSelf Asin (TSelf x)
 
static TSelf Asinh (TSelf x)
 
static TSelf Atan (TSelf x)
 
static TSelf Atan2 (TSelf y, TSelf x)
 
static TSelf Atanh (TSelf x)
 
static TSelf BitDecrement (TSelf x)
 
static TSelf BitIncrement (TSelf x)
 
static TSelf Cbrt (TSelf x)
 
static TSelf Ceiling (TSelf x)
 
static TSelf CopySign (TSelf x, TSelf y)
 
static TSelf Cos (TSelf x)
 
static TSelf Cosh (TSelf x)
 
static TSelf Exp (TSelf x)
 
static TSelf Floor (TSelf x)
 
static TSelf FusedMultiplyAdd (TSelf left, TSelf right, TSelf addend)
 
static TSelf IEEERemainder (TSelf left, TSelf right)
 
static TInteger ILogB< TInteger > (TSelf x)
 
static bool IsFinite (TSelf value)
 
static bool IsInfinity (TSelf value)
 
static bool IsNaN (TSelf value)
 
static bool IsNegative (TSelf value)
 
static bool IsNegativeInfinity (TSelf value)
 
static bool IsNormal (TSelf value)
 
static bool IsPositiveInfinity (TSelf value)
 
static bool IsSubnormal (TSelf value)
 
static TSelf Log (TSelf x)
 
static TSelf Log (TSelf x, TSelf newBase)
 
static TSelf Log2 (TSelf x)
 
static TSelf Log10 (TSelf x)
 
static TSelf MaxMagnitude (TSelf x, TSelf y)
 
static TSelf MinMagnitude (TSelf x, TSelf y)
 
static TSelf Pow (TSelf x, TSelf y)
 
static TSelf Round (TSelf x)
 
static TSelf Round (TSelf x, MidpointRounding mode)
 
static TSelf Round< TInteger > (TSelf x, TInteger digits)
 
static TSelf Round< TInteger > (TSelf x, TInteger digits, MidpointRounding mode)
 
static TSelf ScaleB< TInteger > (TSelf x, TInteger n)
 
static TSelf Sin (TSelf x)
 
static TSelf Sinh (TSelf x)
 
static TSelf Sqrt (TSelf x)
 
static TSelf Tan (TSelf x)
 
static TSelf Tanh (TSelf x)
 
static TSelf Truncate (TSelf x)
 

Static Public Attributes

static Half Quotient
 

Package Functions

 Half (ushort value)
 

Static Package Functions

static Half Negate (Half value)
 

Properties

static Half Epsilon [get]
 
static Half PositiveInfinity [get]
 
static Half NegativeInfinity [get]
 
static Half NaN [get]
 
static Half MinValue [get]
 
static Half MaxValue [get]
 
sbyte Exponent [get]
 
ushort Significand [get]
 
static Half IAdditiveIdentity< Half, Half >. AdditiveIdentity [get]
 
static Half IFloatingPoint< Half >. E [get]
 
static Half IFloatingPoint< Half >. Epsilon [get]
 
static Half IFloatingPoint< Half >. NaN [get]
 
static Half IFloatingPoint< Half >. NegativeInfinity [get]
 
static Half IFloatingPoint< Half >. NegativeZero [get]
 
static Half IFloatingPoint< Half >. Pi [get]
 
static Half IFloatingPoint< Half >. PositiveInfinity [get]
 
static Half IFloatingPoint< Half >. Tau [get]
 
static Half IMinMaxValue< Half >. MinValue [get]
 
static Half IMinMaxValue< Half >. MaxValue [get]
 
static Half IMultiplicativeIdentity< Half, Half >. MultiplicativeIdentity [get]
 
static Half INumber< Half >. One [get]
 
static Half INumber< Half >. Zero [get]
 
static Half ISignedNumber< Half >. NegativeOne [get]
 

Private Member Functions

 Half (bool sign, ushort exp, ushort sig)
 

Static Private Member Functions

static bool AreZero (Half left, Half right)
 
static bool IsNaNOrZero (Half value)
 
static uint StripSign (Half value)
 
static int uint Sig NormSubnormalF16Sig (uint sig)
 
static Half CreateHalfNaN (bool sign, ulong significand)
 
static ushort RoundPackToHalf (bool sign, short exp, ushort sig)
 
static uint ShiftRightJam (uint i, int dist)
 
static ulong ShiftRightJam (ulong l, int dist)
 
static float CreateSingleNaN (bool sign, ulong significand)
 
static double CreateDoubleNaN (bool sign, ulong significand)
 
static float CreateSingle (bool sign, byte exp, uint sig)
 
static double CreateDouble (bool sign, ushort exp, ulong sig)
 

Private Attributes

readonly ushort _value
 

Static Private Attributes

static readonly Half PositiveZero = new Half(0)
 
static readonly Half NegativeZero = new Half(32768)
 
static int Exp
 

Detailed Description

Definition at line 9 of file Half.cs.


The documentation for this struct was generated from the following file: