XX CMake Package
Loading...
Searching...
No Matches
XXMath.h
Go to the documentation of this file.
1#ifndef XXMathH
2#define XXMathH
3
4#include "XXMathExportDef.h"
5
6#include <cmath>
7#include <QVector>
8
9namespace XX
10{
11 namespace Math
12 {
13 static const double pi = 2.0 * std::asin(1.0);
14 static const double epsilon = 1e-12;
15
16 XXMATH_DECLSPEC double deg2Rad(const double& degrees);
17 XXMATH_DECLSPEC double rad2Deg(const double& radians);
18
19 XXMATH_DECLSPEC bool signChange(const double& value1, const double& value2);
20
21 XXMATH_DECLSPEC size_t getNearestPowerOfTwo(const size_t& num);
22 XXMATH_DECLSPEC bool isPowerOfTwo(const size_t& num);
23
24 XXMATH_DECLSPEC QVector<double> derivative(const QVector<double>& values, uint8_t order);
25
26 } // namespace Math
27} // namespace XX
28
29#endif // NOT XXMathH
#define XXMATH_DECLSPEC
Definition XXMathExportDef.h:17
Definition XXMath.h:12
double rad2Deg(const double &radians)
static const double pi
Definition XXMath.h:13
bool signChange(const double &value1, const double &value2)
QVector< double > derivative(const QVector< double > &values, uint8_t order)
bool isPowerOfTwo(const size_t &num)
size_t getNearestPowerOfTwo(const size_t &num)
static const double epsilon
Definition XXMath.h:14
double deg2Rad(const double &degrees)
Definition XXPopulatedAbstract.h:11