Lines Matching full:roots
19 // Return the number of distinct real roots, and write them into roots[] in
21 static int find_quad_roots(float A, float B, float C, float roots[2]) {
22 SkASSERT(roots);
25 return valid_divide(-C, B, roots);
47 roots[0] = 0;
53 roots[0] = r0 < r1 ? r0 : r1;
54 roots[1] = r0 > r1 ? r0 : r1;
88 float roots[2];
91 int countRoots = find_quad_roots(fA, fB, C, roots);
103 float t = roots[countRoots - 1];
106 t = roots[0]; // might be the same as roots[countRoots-1]
569 // intermediate value we'll use to compute the roots
575 // compute both roots
583 // Note: If there are two roots that both generate radius(t) > 0, the