terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
InControl.OptionalFloat Struct Reference

Public Member Functions

 OptionalFloat (float value)
 
void Clear ()
 
float GetValueOrDefault (float defaultValue)
 
float GetValueOrZero ()
 
void SetValue (float value)
 
override bool Equals (object other)
 
bool Equals (OptionalFloat other)
 
bool Equals (float other)
 
override int GetHashCode ()
 
override string ToString ()
 
bool ApproximatelyEquals (float other)
 

Static Public Member Functions

static bool operator== (OptionalFloat a, OptionalFloat b)
 
static bool operator!= (OptionalFloat a, OptionalFloat b)
 
static bool operator== (OptionalFloat a, float b)
 
static bool operator!= (OptionalFloat a, float b)
 
static implicit operator OptionalFloat (float value)
 
static operator float (OptionalFloat optional)
 

Properties

bool HasValue [get]
 
bool HasNoValue [get]
 
float Value [get, set]
 

Static Private Member Functions

static int CombineHashCodes (int h1, int h2)
 
static bool IsApproximatelyEqual (float a, float b)
 

Private Attributes

bool hasValue
 
float value
 

Static Private Attributes

const float epsilon = 1E-07f
 

Detailed Description

Definition at line 10 of file OptionalFloat.cs.


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