X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fmathextra.h;fp=src%2Fbase%2Fmathextra.h;h=d772b3fb3d97a01f874baa64332a0f25cce61eba;hb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;hp=eeb1ea62d97d777a2d540c82ed483f3b361f3941;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/mathextra.h b/src/base/mathextra.h index eeb1ea6..d772b3f 100644 --- a/src/base/mathextra.h +++ b/src/base/mathextra.h @@ -10,28 +10,28 @@ /** * 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__