X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fbezier.cpp;h=cb926974cf0210feb95dac81cd98a4cd5ec7f4e5;hp=67b384c9716feda24ee4bf41d58f203120a6d33d;hb=3917214a11bf76381ddc528e3fe51de9ec038d42;hpb=875df16552ba91c5eb4a7aaf3c48537b3d93b3fb diff --git a/src/bezier.cpp b/src/bezier.cpp index 67b384c..cb92697 100644 --- a/src/bezier.cpp +++ b/src/bezier.cpp @@ -54,11 +54,11 @@ static void CubicSolveSegment(vector & roots, const Real & a, const Real & Real l = a*tl*tl*tl + b*tl*tl + c*tl + d; Real u = a*tu*tu*tu + b*tu*tu + c*tu + d; if ((l < 0 && u < 0) || (l > 0 && u > 0)) - Debug("Discarding segment (no roots) l = %f (%f), u = %f (%f)", tl, l, tu, u); + Debug("Discarding segment (no roots) l = %f (%f), u = %f (%f)", Double(tl), Double(l), Double(tu), Double(u)); //return; bool negative = (u < l); // lower point > 0, upper point < 0 - Debug("%ft^3 + %ft^2 + %ft + %f is negative (%f < %f) %d", a,b,c,d,u,l, negative); + Debug("%ft^3 + %ft^2 + %ft + %f is negative (%f < %f) %d", Double(a),Double(b),Double(c),Double(d),Double(u),Double(l), negative); while (tu - tl > delta) { Real t(tu+tl);