//#define _MT
//#endif
-#include <math.h>
-#include <errno.h>
#include <QtCore>
-#ifndef RS_NO_FPARSER
-#include "fparser.h"
-#endif
-
-#include "rs.h"
-
#define ARAD 57.29577951308232
#define RS_TOLERANCE 1.0e-10
#define RS_TOLERANCE_ANGLE 1.0e-8
-//typedef unsigned int uint;
-
/**
* Math functions.
*/
public:
static int round(double v);
static double pow(double x, double y);
-
- //static double abs(double v);
- //static int abs(int v);
static double rad2deg(double a);
static double deg2rad(double a);
static double rad2gra(double a);
static bool isSameDirection(double dir1, double dir2, double tol);
static double eval(const QString & expr, double def = 0.0);
static bool cmpDouble(double v1, double v2, double tol = 0.001);
-
- // Keep that in the header file for dynamic inclusion/exclusion.
- // (JLH: What kind of boneheaded crappy justification is that??!!??!!?)
static double eval(const QString & expr, bool * ok);
-
static QString doubleToString(double value, double prec);
static QString doubleToString(double value, int prec);