Able
Askowl Base Library Enabler
Askowl.Range Class Reference

Simple class to represent the high and low bounds for a float. It includes a picker to randomly choose a number within that range More...

Inheritance diagram for Askowl.Range:
Askowl.Pick< float >

Public Member Functions

 Range ()
 Default constructor used when the range is set in a MonoBehaviour in the Unity Editor More...
 
 Range (float min, float max)
 Constructor used to set the range directly or as initialisation for MonoBehaviour data More...
 
float Pick ()
 Choose a random number within the inclusive range More...
 
- Public Member Functions inherited from Askowl.Pick< float >
Pick ()
 Method to call to return the selection More...
 

Properties

float Min [get, set]
 Lowest value a number can have in this range More...
 
float Max [get, set]
 Highest value a number can have in this range More...
 

Detailed Description

Constructor & Destructor Documentation

◆ Range() [1/2]

◆ Range() [2/2]

Askowl.Range.Range ( float  min,
float  max 
)

Member Function Documentation

◆ Pick()

Property Documentation

◆ Max

float Askowl.Range.Max
getset

◆ Min

float Askowl.Range.Min
getset

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