Otter
0.9.8.91
2d Game Development Framework based on SFML.Net
|
Class used to represent a range using a min and max. More...
Public Member Functions | |
Range (float min, float max) | |
Create a new Range. More... | |
Range (float max) | |
Create a new Range. More... | |
bool | Overlap (Range r) |
Test if this Range overlaps another Range. More... | |
override string | ToString () |
Public Attributes | |
float | Min |
The minimum of the range. More... | |
float | Max |
The maximum of the range. More... | |
Properties | |
int | RandInt [get] |
Get a random int from the range. Floors the Min and Ceils the Max. More... | |
float | RandFloat [get] |
Get a random float from the range. More... | |
Class used to represent a range using a min and max.
Otter.Range.Range | ( | float | min, |
float | max | ||
) |
Create a new Range.
min | Minimum value. |
max | Maximum value. |
Otter.Range.Range | ( | float | max | ) |
Create a new Range.
max | Maximum value. Minimum is -Maximum. |
bool Otter.Range.Overlap | ( | Range | r | ) |
float Otter.Range.Max |
The maximum of the range.
float Otter.Range.Min |
The minimum of the range.
|
get |
Get a random float from the range.
|
get |
Get a random int from the range. Floors the Min and Ceils the Max.