2018-04-07 08:44:39 +00:00
|
|
|
#ifndef UTIL_H
|
|
|
|
#define UTIL_H
|
|
|
|
#include <QString>
|
|
|
|
#include <map>
|
2018-04-12 08:34:00 +00:00
|
|
|
#include <cmath>
|
2018-04-30 11:31:09 +00:00
|
|
|
#include <QVector3D>
|
2018-04-12 08:34:00 +00:00
|
|
|
|
|
|
|
#ifndef M_PI
|
|
|
|
#define M_PI 3.14159265358979323846
|
|
|
|
#endif
|
2018-04-07 08:44:39 +00:00
|
|
|
|
|
|
|
QString valueOfKeyInMapOrEmpty(const std::map<QString, QString> &map, const QString &key);
|
|
|
|
bool isTrueValueString(const QString &str);
|
|
|
|
bool isFloatEqual(float a, float b);
|
2018-04-13 00:04:18 +00:00
|
|
|
void qNormalizeAngle(int &angle);
|
2018-04-07 08:44:39 +00:00
|
|
|
|
|
|
|
#endif
|