DoopelPonger
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Range Class Reference

Data class that holds a minimum and maximum value. More...

Public Member Functions

 Range (float min, float max)
 
float GetDifference ()
 
string ConvertToString ()
 

Static Public Member Functions

static Range CreateRangeFromString (string propertyString)
 Convert a string, serialized from the ConvertToString method, into a Range object. More...
 

Public Attributes

float min
 
float max
 

Detailed Description

Data class that holds a minimum and maximum value.

Constructor & Destructor Documentation

◆ Range()

Range.Range ( float  min,
float  max 
)

Member Function Documentation

◆ ConvertToString()

string Range.ConvertToString ( )
Returns
The range converted to a string.

◆ CreateRangeFromString()

static Range Range.CreateRangeFromString ( string  propertyString)
static

Convert a string, serialized from the ConvertToString method, into a Range object.

Parameters
propertyStringThe serialized string
Returns
The new Range object that contains the information from the string.

◆ GetDifference()

float Range.GetDifference ( )
Returns
The difference between the min and max values.

Member Data Documentation

◆ max

float Range.max

◆ min

float Range.min

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