Lines Matching refs:inflectT
72 double inflectT[5]; in toQuadraticTs() local
73 int inflections = cubic->findInflections(inflectT); in toQuadraticTs()
76 inflections += cubic->findMaxCurvature(&inflectT[inflections]); 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()
88 if (!approximately_equal(inflectT[start], inflectT[next])) { 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()
101 pair = cubic->chopAt(inflectT[0]); in toQuadraticTs()
116 pair = cubic->chopAt(inflectT[0]); in toQuadraticTs()
117 addTs(pair.first(), precision, 0, inflectT[0], ts); in toQuadraticTs()
118 addTs(pair.second(), precision, inflectT[0], 1, ts); in toQuadraticTs()
122 SkDCubic part = cubic->subDivide(0, inflectT[0]); in toQuadraticTs()
123 addTs(part, precision, 0, inflectT[0], ts); in toQuadraticTs()
126 part = cubic->subDivide(inflectT[idx], inflectT[idx + 1]); in toQuadraticTs()
127 addTs(part, precision, inflectT[idx], inflectT[idx + 1], ts); in toQuadraticTs()
129 part = cubic->subDivide(inflectT[last], 1); in toQuadraticTs()
130 addTs(part, precision, inflectT[last], 1, ts); in toQuadraticTs()