Lines Matching defs:error
30 // T-coordinate of max error, and outputs it and its value in pixels. (It turns out that max error
33 // Press 'E' to iteratively cut the arc in half and report the improvement in max error after each
34 // halving. (It turns out that max error improves by exactly 64x on every halving.)
53 double fMaxError; // Max error (in pixels) between the cubic and the screen-space arc.
96 // unit circle. i.e., the point where the derivative of error == 0. For error we use:
98 // error = x^2 + y^2 - 1
99 // error' = 2xx' + 2yy'
100 // error'' = 2xx'' + 2yy'' + 2x'^2 + 2y'^2
125 fInfoStrings.push_back().printf("max error T=%0.14f", fMaxErrorT);
134 fInfoStrings.push_back().printf("max error=%.5gpx", fMaxError);
233 // Split the arc in half until error =~0, and report the improvement after each halving.
241 double error = std::sqrt(x*x + y*y) * kRadius - kRadius;
242 if ((float)error <= 0) {
243 error = 0;
245 SkDebugf("%6.2f degrees: error= %10.5gpx", theta, error);
247 SkDebugf(" (%17.14fx improvement)", lastError / error);
250 lastError = error;