![]() |
Gorgon Game Engine
|
This class represents a range of values. More...
Public Member Functions | |
| Range ()=default | |
| Range (T_ start, T_ end) | |
| T_ | Difference () const |
| Returns the difference between start and end. More... | |
| void | Normalize () |
| Normalizes the range ensuring Start is less than or equal to the end. More... | |
Public Attributes | |
| T_ | End |
| T_ | Start |
This class represents a range of values.
Generally, start is assumed to be included while end is excluded.
|
default |
| Range | ( | T_ | start, |
| T_ | end | ||
| ) |
| T_ Difference | ( | ) | const |
Returns the difference between start and end.
References Range< T_ >::End, and Range< T_ >::Start.
| void Normalize | ( | ) |
Normalizes the range ensuring Start is less than or equal to the end.
References Range< T_ >::End, and Range< T_ >::Start.
| T_ End |
| T_ Start |