#include <lemon/tolerance.h>
Public Types | |
| typedef float | Value |
| | |
Public Member Functions | |
| Tolerance () | |
| Constructor setting the epsilon tolerance to the default value. | |
| Tolerance (float e) | |
| Constructor setting the epsilon tolerance. | |
| Value | epsilon () const |
| Return the epsilon value. | |
| void | epsilon (Value e) |
| Set the epsilon value. | |
Comparisons | |
| bool | less (Value a, Value b) const |
Returns true if a is surely strictly less than b. | |
| bool | different (Value a, Value b) const |
Returns true if a is surely different from b. | |
| bool | positive (Value a) const |
Returns true if a is surely positive. | |
| bool | negative (Value a) const |
Returns true if a is surely negative. | |
| bool | nonZero (Value a) const |
Returns true if a is surely non-zero. | |
Static Public Member Functions | |
| static Value | defaultEpsilon () |
| Return the default epsilon value. | |
| static void | defaultEpsilon (Value e) |
| Set the default epsilon value. | |
| static Value | zero () |
| Returns zero. | |
1.5.9