4 // no idea why, but doesn't link without that under win32 / bcc55:
5 //who cares if it doesn't
20 #define ARAD 57.29577951308232
21 #define RS_TOLERANCE 1.0e-10
22 #define RS_TOLERANCE_ANGLE 1.0e-8
24 //typedef unsigned int uint;
32 static int round(double v);
33 static double pow(double x, double y);
35 //static double abs(double v);
36 //static int abs(int v);
37 static double rad2deg(double a);
38 static double deg2rad(double a);
39 static double rad2gra(double a);
40 static int findGCD(int a, int b);
41 static bool isAngleBetween(double a, double a1, double a2, bool reversed);
42 static double correctAngle(double a);
43 static double getAngleDifference(double a1, double a2);
44 static double makeAngleReadable(double angle, bool readable = true, bool * corrected = NULL);
45 static bool isAngleReadable(double angle);
46 static bool isSameDirection(double dir1, double dir2, double tol);
47 static double eval(const QString & expr, double def = 0.0);
48 static bool cmpDouble(double v1, double v2, double tol = 0.001);
50 // Keep that in the header file for dynamic inclusion/exclusion.
51 // (JLH: What kind of boneheaded crappy justification is that??!!??!!?)
52 static double eval(const QString & expr, bool * ok);
54 static QString doubleToString(double value, double prec);
55 static QString doubleToString(double value, int prec);