]> Shamusworld >> Repos - architektonas/blobdiff - src/base/mathextra.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / mathextra.h
index eeb1ea62d97d777a2d540c82ed483f3b361f3941..d772b3fb3d97a01f874baa64332a0f25cce61eba 100644 (file)
 /**
  * Math functions.
  */
-class RS_Math
+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);
+       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();
+               static void test();
 };
 
 #endif // __MATHEXTRA_H__