Lines Matching refs:inflections
70 int inflections = cubic->findInflections(inflectT); in toQuadraticTs() local
71 SkASSERT(inflections <= 2); in toQuadraticTs()
73 inflections += cubic->findMaxCurvature(&inflectT[inflections]); in toQuadraticTs()
74 SkASSERT(inflections <= 5); in toQuadraticTs()
76 SkTQSort<double>(inflectT, &inflectT[inflections - 1]); in toQuadraticTs()
79 while (inflections && approximately_less_than_zero(inflectT[0])) { in toQuadraticTs()
80 memmove(inflectT, &inflectT[1], sizeof(inflectT[0]) * --inflections); in toQuadraticTs()
84 while (next < inflections) { in toQuadraticTs()
90 memmove(&inflectT[start], &inflectT[next], sizeof(inflectT[0]) * (--inflections - start)); in toQuadraticTs()
93 while (inflections && approximately_greater_than_one(inflectT[inflections - 1])) { in toQuadraticTs()
94 --inflections; in toQuadraticTs()
97 if (inflections == 1) { in toQuadraticTs()
101 --inflections; in toQuadraticTs()
105 --inflections; in toQuadraticTs()
109 if (inflections == 0 && add_simple_ts(*cubic, precision, ts)) { in toQuadraticTs()
112 if (inflections == 1) { in toQuadraticTs()
118 if (inflections > 1) { in toQuadraticTs()
121 int last = inflections - 1; in toQuadraticTs()
223 int inflections = cubic.findInflections(tInflects); in CubicPathToSimple() local
224 if (inflections > 1 && tInflects[0] > tInflects[1]) { in CubicPathToSimple()
228 for (int index = 0; index <= inflections; ++index) { in CubicPathToSimple()
229 double hi = index < inflections ? tInflects[index] : 1; in CubicPathToSimple()