Lines Matching refs:inflections
73 int inflections = cubic->findInflections(inflectT); in toQuadraticTs() local
74 SkASSERT(inflections <= 2); in toQuadraticTs()
76 inflections += cubic->findMaxCurvature(&inflectT[inflections]); in toQuadraticTs()
77 SkASSERT(inflections <= 5); in toQuadraticTs()
79 SkTQSort<double>(inflectT, &inflectT[inflections - 1]); in toQuadraticTs()
82 while (inflections && approximately_less_than_zero(inflectT[0])) { in toQuadraticTs()
83 memmove(inflectT, &inflectT[1], sizeof(inflectT[0]) * --inflections); in toQuadraticTs()
87 while (next < inflections) { in toQuadraticTs()
93 memmove(&inflectT[start], &inflectT[next], sizeof(inflectT[0]) * (--inflections - start)); in toQuadraticTs()
96 while (inflections && approximately_greater_than_one(inflectT[inflections - 1])) { in toQuadraticTs()
97 --inflections; in toQuadraticTs()
100 if (inflections == 1) { in toQuadraticTs()
104 --inflections; in toQuadraticTs()
108 --inflections; in toQuadraticTs()
112 if (inflections == 0 && add_simple_ts(*cubic, precision, ts)) { in toQuadraticTs()
115 if (inflections == 1) { in toQuadraticTs()
121 if (inflections > 1) { in toQuadraticTs()
124 int last = inflections - 1; in toQuadraticTs()
226 int inflections = cubic.findInflections(tInflects); in CubicPathToSimple() local
227 if (inflections > 1 && tInflects[0] > tInflects[1]) { in CubicPathToSimple()
232 for (int index = 0; index <= inflections; ++index) { in CubicPathToSimple()
233 double hi = index < inflections ? tInflects[index] : 1; in CubicPathToSimple()