Implements some math functions needed in various parts of the code. More...
#include <limits>Go to the source code of this file.
Defines | |
| #define | M_PI 3.14159265 |
Functions | |
| template<typename T > | |
| bool | isinf (T value) |
| Returns true for a variable of every type that has infinity defined in std and is larger than its maximal value. | |
| template<typename T > | |
| bool | isnan (T value) |
| Returns true if the given value is not a number (NaN). | |
Implements some math functions needed in various parts of the code.
This file reimplements some functionality from math.h in order to overcome some cross-platform problems. There are no execution speed repercussions resulting from this substitution.
| #define M_PI 3.14159265 |
Approximation of Pi, if necesseary
| bool isinf | ( | T | value | ) | [inline] |
Returns true for a variable of every type that has infinity defined in std and is larger than its maximal value.
| value | A variable of any of the template types. |
| bool isnan | ( | T | value | ) | [inline] |
Returns true if the given value is not a number (NaN).
| value | A value of any of the template types. |
1.7.1