]> Shamusworld >> Repos - architektonas/blobdiff - src/base/mathextra.h
Major refactor of Architektonas: Jettisoning old cruft.
[architektonas] / src / base / mathextra.h
diff --git a/src/base/mathextra.h b/src/base/mathextra.h
deleted file mode 100644 (file)
index d772b3f..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef __MATHEXTRA_H__
-#define __MATHEXTRA_H__
-
-#include <QtCore>
-
-#define ARAD                           57.29577951308232
-#define RS_TOLERANCE           1.0e-10
-#define RS_TOLERANCE_ANGLE     1.0e-8
-
-/**
- * Math functions.
- */
-class Math
-{
-       public:
-               static int round(double v);
-               static double pow(double x, double y);
-               static double rad2deg(double a);
-               static double deg2rad(double a);
-               static double rad2gra(double a);
-               static int findGCD(int a, int b);
-               static bool isAngleBetween(double a, double a1, double a2, bool reversed);
-               static double correctAngle(double a);
-               static double getAngleDifference(double a1, double a2);
-               static double makeAngleReadable(double angle, bool readable = true, bool * corrected = NULL);
-               static bool isAngleReadable(double angle);
-               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);
-               static double eval(const QString & expr, bool * ok);
-               static QString doubleToString(double value, double prec);
-               static QString doubleToString(double value, int prec);
-
-               static void test();
-};
-
-#endif // __MATHEXTRA_H__