InControl API Reference
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 int CombineHashCodes (int h1, int h2)
 
static implicit operator OptionalFloat (float value)
 
static operator float (OptionalFloat optional)
 
static bool IsApproximatelyEqual (float a, float b)
 

Public Attributes

bool hasValue
 
float value
 

Static Public Attributes

const float epsilon = 1.0e-7f
 

Properties

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

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