#include <Limits.hpp>
Public Member Functions | |
Limit () | |
Limit (T min, T max) | |
Public Attributes | |
T | max |
T | min |
The class implements a simple limit class. The class is similar to the std::pair however it instantiates the member variables to NaN values so that they are comparison neutral if not defined.
T | The precision template variable. |
Definition at line 51 of file Limits.hpp.
labust::math::Limit< T >::Limit | ( | ) | [inline] |
Default constructor. Instantiates member variables to the NaN.
Definition at line 56 of file Limits.hpp.
labust::math::Limit< T >::Limit | ( | T | min, |
T | max | ||
) | [inline] |
Main constructor. Take the minimum and maximum limits.
min | Minimum of the limited range. |
max | Maximum of the limited range. |
Definition at line 65 of file Limits.hpp.
T labust::math::Limit< T >::max |
Definition at line 67 of file Limits.hpp.
T labust::math::Limit< T >::min |
Minimum and maximum of the limit range.
Definition at line 67 of file Limits.hpp.