1.1 --- a/tools/lgf-gen.cc Tue Apr 21 15:18:54 2009 +0100
1.2 +++ b/tools/lgf-gen.cc Thu Apr 23 10:44:35 2009 +0100
1.3 @@ -65,7 +65,7 @@
1.4 double totalLen(){
1.5 double tlen=0;
1.6 for(EdgeIt e(g);e!=INVALID;++e)
1.7 - tlen+=sqrt((coords[g.v(e)]-coords[g.u(e)]).normSquare());
1.8 + tlen+=std::sqrt((coords[g.v(e)]-coords[g.u(e)]).normSquare());
1.9 return tlen;
1.10 }
1.11
1.12 @@ -188,7 +188,7 @@
1.13 (q.x * q.x + q.y * q.y) * (r.x * p.y - p.x * r.y) +
1.14 (r.x * r.x + r.y * r.y) * (p.x * q.y - q.x * p.y);
1.15
1.16 - return d / (2 * a) + sqrt((d * d + e * e) / (4 * a * a) + f / a);
1.17 + return d / (2 * a) + std::sqrt((d * d + e * e) / (4 * a * a) + f / a);
1.18 }
1.19
1.20 inline bool circle_form(const Point& p, const Point& q, const Point& r) {
1.21 @@ -206,7 +206,7 @@
1.22 double a = q.x - p.x;
1.23 double b = (q.x - sx) * p.y - (p.x - sx) * q.y;
1.24 double d = (q.x - sx) * (p.x - sx) * (p - q).normSquare();
1.25 - return (b - sqrt(d)) / a;
1.26 + return (b - std::sqrt(d)) / a;
1.27 }
1.28
1.29 struct YLess {
1.30 @@ -813,7 +813,7 @@
1.31 std::cout << "Number of arcs : " << countEdges(g) << std::endl;
1.32 double tlen=0;
1.33 for(EdgeIt e(g);e!=INVALID;++e)
1.34 - tlen+=sqrt((coords[g.v(e)]-coords[g.u(e)]).normSquare());
1.35 + tlen+=std::sqrt((coords[g.v(e)]-coords[g.u(e)]).normSquare());
1.36 std::cout << "Total arc length : " << tlen << std::endl;
1.37
1.38 if(ap["eps"])