Lines Matching refs:tolerance
134 double tolerance = 0.0,
136 SkASSERT(tolerance >= 0.0);
137 double tolB = tolerance;
138 double tolC = tolerance;
148 tolB = tolerance / sqrt(4.0 * b * b + 1.0);
149 tolC = tolerance / sqrt(4.0 * c * c + 1.0);
157 double tolerance = 0.0,
159 SkASSERT(tolerance >= 0.0);
160 double tolB = tolerance;
161 double tolC = tolerance;
164 tolB = tolerance / sqrt(4.0 * b * b + 1.0);
165 tolC = tolerance / sqrt(4.0 * c * c + 1.0);
171 static inline bool nearly_zero(double x, double tolerance = kNearlyZero) {
172 SkASSERT(tolerance >= 0.0);
173 return fabs(x) <= tolerance;
177 double tolerance = kNearlyZero,
179 SkASSERT(tolerance >= 0.0);
181 tolerance = tolerance / sqrt(4.0 * y * y + 1.0);
183 return fabs(x - y) <= tolerance;