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

Public Member Functions

int CompareTo (object? value)
 
int CompareTo (float value)
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (float obj)
 
override int GetHashCode ()
 
override string ToString ()
 
string ToString (IFormatProvider? provider)
 
string ToString (string? format)
 
string ToString (string? format, IFormatProvider? provider)
 
bool TryFormat (Span< char > destination, out int charsWritten, ReadOnlySpan< char > format=default(ReadOnlySpan< char >), IFormatProvider? provider=null)
 
TypeCode GetTypeCode ()
 
bool IConvertible. ToBoolean (IFormatProvider provider)
 
char IConvertible. ToChar (IFormatProvider provider)
 
sbyte IConvertible. ToSByte (IFormatProvider provider)
 
byte IConvertible. ToByte (IFormatProvider provider)
 
short IConvertible. ToInt16 (IFormatProvider provider)
 
ushort IConvertible. ToUInt16 (IFormatProvider provider)
 
int IConvertible. ToInt32 (IFormatProvider provider)
 
uint IConvertible. ToUInt32 (IFormatProvider provider)
 
long IConvertible. ToInt64 (IFormatProvider provider)
 
ulong IConvertible. ToUInt64 (IFormatProvider provider)
 
float IConvertible. ToSingle (IFormatProvider provider)
 
double IConvertible. ToDouble (IFormatProvider provider)
 
decimal IConvertible. ToDecimal (IFormatProvider provider)
 
DateTime IConvertible. ToDateTime (IFormatProvider provider)
 
object IConvertible. ToType (Type type, IFormatProvider provider)
 
int CompareTo (T? other)
 
bool ToBoolean (IFormatProvider? provider)
 
char ToChar (IFormatProvider? provider)
 
sbyte ToSByte (IFormatProvider? provider)
 
byte ToByte (IFormatProvider? provider)
 
short ToInt16 (IFormatProvider? provider)
 
ushort ToUInt16 (IFormatProvider? provider)
 
int ToInt32 (IFormatProvider? provider)
 
uint ToUInt32 (IFormatProvider? provider)
 
long ToInt64 (IFormatProvider? provider)
 
ulong ToUInt64 (IFormatProvider? provider)
 
float ToSingle (IFormatProvider? provider)
 
double ToDouble (IFormatProvider? provider)
 
decimal ToDecimal (IFormatProvider? provider)
 
DateTime ToDateTime (IFormatProvider? provider)
 
object ToType (Type conversionType, IFormatProvider? provider)
 
int CompareTo (T? other)
 
bool Equals (T? other)
 

Static Public Member Functions

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

const float MinValue = -3.4028235E+38f
 
const float Epsilon = 1E-45f
 
const float MaxValue = 3.4028235E+38f
 
const float PositiveInfinity = 1f / 0f
 
const float NegativeInfinity = -1f / 0f
 
const float NaN = 0f / 0f
 
static float Quotient
 

Static Package Functions

static int ExtractExponentFromBits (uint bits)
 
static uint ExtractSignificandFromBits (uint bits)
 

Properties

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

Static Private Member Functions

static bool TryParse (ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info, out float result)
 

Private Attributes

readonly float m_value
 

Detailed Description

Definition at line 11 of file Single.cs.


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