@@ -36,17 +36,17 @@ enum {
3636};
3737
3838class Point2f ;
39- bool approxeq (const Point2f& p1, const Point2f& p2, double tolerance = 0.0 );
39+ bool approxeq (const Point2f& p1, const Point2f& p2, double tolerance = 1e-9 );
4040class QtRegion ;
41- bool intersect_region (const QtRegion& a, const QtRegion& b, double tolerance = 0.0 );
42- bool overlap_x (const QtRegion& a, const QtRegion& b, double tolerance = 0.0 );
43- bool overlap_y (const QtRegion& a, const QtRegion& b, double tolerance = 0.0 );
41+ bool intersect_region (const QtRegion& a, const QtRegion& b, double tolerance = 1e-9 );
42+ bool overlap_x (const QtRegion& a, const QtRegion& b, double tolerance = 1e-9 );
43+ bool overlap_y (const QtRegion& a, const QtRegion& b, double tolerance = 1e-9 );
4444class Line ;
45- bool intersect_line (const Line& a, const Line& b, double tolerance = 0.0 );
46- bool intersect_line_no_touch (const Line& a, const Line& b, double tolerance = 0.0 );
47- int intersect_line_distinguish (const Line& a, const Line& b, double tolerance = 0.0 );
48- int intersect_line_b (const Line& a, const Line& b, double tolerance = 0.0 );
49- Point2f intersection_point (const Line& a, const Line& b, double tolerance = 0.0 );
45+ bool intersect_line (const Line& a, const Line& b, double tolerance = 1e-9 );
46+ bool intersect_line_no_touch (const Line& a, const Line& b, double tolerance = 1e-9 );
47+ int intersect_line_distinguish (const Line& a, const Line& b, double tolerance = 1e-9 );
48+ int intersect_line_b (const Line& a, const Line& b, double tolerance = 1e-9 );
49+ Point2f intersection_point (const Line& a, const Line& b, double tolerance = 1e-9 );
5050
5151// NaN on Intel:
5252// Quick mod - TV
@@ -100,7 +100,7 @@ class Point2f
100100 friend Point2f pointfromangle (double angle);
101101 // a couple of useful tests
102102 bool intriangle (const Point2f& p1, const Point2f& p2, const Point2f& p3);
103- bool insegment (const Point2f& key, const Point2f& p2, const Point2f& p3, double tolerance = 0.0 );
103+ bool insegment (const Point2f& key, const Point2f& p2, const Point2f& p3, double tolerance = 1e-9 );
104104 // for OS transformation (note: accurate only to 5 metres according to OS)
105105 Point2f longlat2os (const Point2f& p);
106106public:
0 commit comments