Definition in file math.H.
Go to the source code of this file.
Namespaces | |
| namespace | qgar |
Classes | |
| class | qgar::Math |
| Global constants and thresholds, implemented as static data members of the class. More... | |
Global functions to test approximate equality between numbers | |
| bool | qgar::qgEq0 (double aDouble, double anEpsilon=Math::epsilonD()) |
| Is a double number approximately equal to zero? | |
| bool | qgar::qgEq0 (float aFloat, float anEpsilon=Math::epsilonF()) |
| Is a float number approximately equal to zero? | |
| bool | qgar::qgEq0 (int anInt, int anEpsilon=Math::epsilonI()) |
| Is an integer number approximately equal to zero? | |
| bool | qgar::qgEq0Radian (double aRadian, double anEpsilon=Math::epsilonRadian()) |
| Is an angle in radians approximately equal to zero? | |
| bool | qgar::qgEq0Degree (double aDegree, double anEpsilon=Math::epsilonDegree()) |
| Is an angle in degrees approximately equal to zero? | |
| bool | qgar::qgEq (double aDouble1, double aDouble2, double anEpsilon=Math::epsilonD()) |
| Approximate equality between two double numbers. | |
| bool | qgar::qgEq (float aFloat1, float aFloat2, float anEpsilon=Math::epsilonF()) |
| Approximate equality between two float numbers. | |
| bool | qgar::qgEq (int anInt1, int anInt2, int anEpsilon=Math::epsilonI()) |
| Approximate equality between two integer numbers. | |
| bool | qgar::qgEqRadian (double aRadian1, double aRadian2, double anEpsilon=Math::epsilonRadian()) |
| Approximate equality between two angles in radians. | |
| bool | qgar::qgEqDegree (double aDegree1, double aDegree2, double anEpsilon=Math::epsilonDegree()) |
| Approximate equality between two angles in degrees. | |
Global functions to test approximate inequality between numbers | |
| bool | qgar::qgNotEq0 (double aDouble, double anEpsilon=Math::epsilonD()) |
| Is a double number approximately not equal to zero? | |
| bool | qgar::qgNotEq0 (float aFloat, float anEpsilon=Math::epsilonF()) |
| Is a float number approximately not equal to zero? | |
| bool | qgar::qgNotEq (int anInt, int anEpsilon=Math::epsilonI()) |
| Is an integer number approximately not equal to zero? | |
| bool | qgar::qgNotEq0Radian (double aRadian, double anEpsilon=Math::epsilonRadian()) |
| Is an angle in radians approximately not equal to zero? | |
| bool | qgar::qgNotEq0Degree (double aDegree, double anEpsilon=Math::epsilonDegree()) |
| Is an angle in degrees approximately not equal to zero? | |
| bool | qgar::qgNotEq (double aDouble1, double aDouble2, double anEpsilon=Math::epsilonD()) |
| Approximate inequality between two double numbers. | |
| bool | qgar::qgNotEq (float aFloat1, float aFloat2, float anEpsilon=Math::epsilonF()) |
| Approximate inequality between two float numbers. | |
| bool | qgar::qgNotEq (int anInt1, int anInt2, int anEpsilon=Math::epsilonI()) |
| Approximate inequality between two integer numbers. | |
| bool | qgar::qgNotEqRadian (double aRadian1, double aRadian2, double anEpsilon=Math::epsilonRadian()) |
| Approximate inequality between two angles in radians. | |
| bool | qgar::qgNotEqDegree (double aDegree1, double aDegree2, double anEpsilon=Math::epsilonDegree()) |
| Approximate inequality between two angles in degrees. | |
Global functions for conversion in radians and degrees | |
| double | qgar::qgRadiansToDegrees (double aRadians) |
| Convert from radians to degrees. | |
| double | qgar::qgDegreesToRadians (double aDegrees) |
| Convert from degrees to radians. | |
Global error functions | |
| double | qgar::qgErf (double x) |
| Compute the error function of the argument. | |
| double | qgar::qgErfc (double x) |
| Compute the complementary error function of the argument. | |
Global functions to compute the module of a number | |
| template<class T> | |
| T | qgar::qgAbs (T aVal) |
| Module of given value (any type). | |
| template<> | |
| int | qgar::qgAbs< int > (int aNb) |
| Module of an int number. | |
| template<> | |
| float | qgar::qgAbs< float > (float aNb) |
| Module of a float number. | |
| template<> | |
| double | qgar::qgAbs< double > (double aNb) |
| Module of a double number. | |