Lines Matching refs:roots
33 static int find_quad_roots(float A, float B, float C, float roots[2], bool descendingOrder = false)… in find_quad_roots()
34 SkASSERT(roots); in find_quad_roots()
37 return valid_divide(-C, B, roots); in find_quad_roots()
59 roots[0] = 0; in find_quad_roots()
65 roots[0] = r0 < r1 ? r0 : r1; in find_quad_roots()
66 roots[1] = r0 > r1 ? r0 : r1; in find_quad_roots()
68 SkTSwap(roots[0], roots[1]); in find_quad_roots()
107 float roots[2]; in nextT() local
110 int countRoots = find_quad_roots(fRec.fA, fB, C, roots, fRec.fFlipped); in nextT()
122 float t = roots[countRoots - 1]; in nextT()
125 t = roots[0]; // might be the same as roots[countRoots-1] in nextT()