Lines Matching refs:tValues
436 SkScalar tValues[2]) {
442 return SkFindUnitQuadRoots(A, B, C, tValues);
526 const SkScalar tValues[], int tCount) {
529 SkASSERT(std::all_of(tValues, tValues + tCount, [](SkScalar t) { return t >= 0 && t <= 1; }));
530 SkASSERT(std::is_sorted(tValues, tValues + tCount));
539 float2 tt = float2::Load(tValues + i);
541 float lastT = tValues[i - 1];
550 float t = tValues[i];
552 float lastT = tValues[i - 1];
685 SkScalar tValues[2];
687 src[3].fY, tValues);
689 SkChopCubicAt(src, dst, tValues, roots);
701 SkScalar tValues[2];
703 src[3].fX, tValues);
705 SkChopCubicAt(src, dst, tValues, roots);
727 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[]) {
738 tValues);
742 SkScalar tValues[2];
743 int count = SkFindCubicInflections(src, tValues);
749 SkChopCubicAt(src, dst, tValues, count);
944 Eliminates repeated roots (so that all tValues are distinct, and are always
947 static int solve_cubic_poly(const SkScalar coeff[4], SkScalar tValues[3]) {
949 return SkFindUnitQuadRoots(coeff[1], coeff[2], coeff[3], tValues);
974 tValues[0] = SkTPin(neg2RootQ * SkScalarCos(theta/3) - adiv3, 0.0f, 1.0f);
975 tValues[1] = SkTPin(neg2RootQ * SkScalarCos((theta + 2*SK_ScalarPI)/3) - adiv3, 0.0f, 1.0f);
976 tValues[2] = SkTPin(neg2RootQ * SkScalarCos((theta - 2*SK_ScalarPI)/3) - adiv3, 0.0f, 1.0f);
980 bubble_sort(tValues, 3);
981 return collaps_duplicates(tValues, 3);
991 tValues[0] = SkTPin(A - adiv3, 0.0f, 1.0f);
1029 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]) {
1040 int numRoots = solve_cubic_poly(coeffX, tValues);
1047 SkScalar tValues[3]) {
1050 if (tValues == nullptr) {
1051 tValues = t_storage;
1061 tValues[count++] = roots[i];
1069 SkChopCubicAt(src, dst, tValues, count);
1211 SkScalar tValues[2];
1212 int roots = SkFindUnitQuadRoots(coeff[0], coeff[1], coeff[2], tValues);
1216 *t = tValues[0];