Represents a range between a minimum and a maximum value.
More...
|
| Range (float min, float max) |
|
bool | IsInRange (float f) |
| Checks to see if the given value is within the range's min and max values.
|
|
float | Clamp (float f) |
| Clamps the given value to be between the range's min and max values.
|
|
float | RandomInRange () |
| Gets a random float value within the range.
|
|
int | RandomInRangeInteger () |
| Gets and random int value within the range.
|
|
float | Lerp (float t) |
| Gets a value between min and max, specified by the variable t.
|
|
float | Normalize (float val) |
| Gets an unclamped value between 0 and 1 based on the given value, where 0 corresponds to Min and 1 corresponds to Max.
|
|
float | NormalizeUnclamped (float val) |
| Normalize the given value, but do not clamp the input to the Min and Max values.
|
|
float | Distance () |
| Gets the distance between the max and min values.
|
|
override string | ToString () |
|
|
float | Min |
| The minimum value of the range.
|
|
float | Max |
| The maximium value of the range.
|
|
Represents a range between a minimum and a maximum value.