Lines Matching refs:inflections
74 int inflections = cubic->findInflections(inflectT); in toQuadraticTs() local
75 SkASSERT(inflections <= 2); in toQuadraticTs()
77 inflections += cubic->findMaxCurvature(&inflectT[inflections]); in toQuadraticTs()
78 SkASSERT(inflections <= 5); in toQuadraticTs()
80 SkTQSort<double>(inflectT, inflectT + inflections); in toQuadraticTs()
83 while (inflections && approximately_less_than_zero(inflectT[0])) { in toQuadraticTs()
84 memmove(inflectT, &inflectT[1], sizeof(inflectT[0]) * --inflections); in toQuadraticTs()
88 while (next < inflections) { in toQuadraticTs()
94 memmove(&inflectT[start], &inflectT[next], sizeof(inflectT[0]) * (--inflections - start)); in toQuadraticTs()
97 while (inflections && approximately_greater_than_one(inflectT[inflections - 1])) { in toQuadraticTs()
98 --inflections; in toQuadraticTs()
101 if (inflections == 1) { in toQuadraticTs()
105 --inflections; in toQuadraticTs()
109 --inflections; in toQuadraticTs()
113 if (inflections == 0 && add_simple_ts(*cubic, precision, ts)) { in toQuadraticTs()
116 if (inflections == 1) { in toQuadraticTs()
122 if (inflections > 1) { in toQuadraticTs()
125 int last = inflections - 1; in toQuadraticTs()
221 int inflections = cubic.findInflections(tInflects); in CubicPathToSimple() local
222 if (inflections > 1 && tInflects[0] > tInflects[1]) { in CubicPathToSimple()
227 for (int index = 0; index <= inflections; ++index) { in CubicPathToSimple()
228 double hi = index < inflections ? tInflects[index] : 1; in CubicPathToSimple()