Home | History | Annotate | Download | only in core

Lines Matching refs:tValues

554 int SkFindCubicExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar d, SkScalar tValues[2])
566 return SkFindUnitQuadRoots(A, B, C, tValues);
598 valid_unit_divide in SkChopCubicAt(... tValues[], int roots). The reason is
618 void SkChopCubicAt(const SkPoint src[4], SkPoint dst[], const SkScalar tValues[], int roots)
624 SkASSERT(is_unit_interval(tValues[i]));
625 SkASSERT(is_unit_interval(tValues[i+1]));
626 SkASSERT(tValues[i] < tValues[i+1]);
637 SkScalar t = tValues[0];
652 if (!valid_unit_divide(tValues[i+1] - tValues[i],
653 SK_Scalar1 - tValues[i], &t)) {
700 SkScalar tValues[2];
702 src[3].fY, tValues);
704 SkChopCubicAt(src, dst, tValues, roots);
716 SkScalar tValues[2];
718 src[3].fX, tValues);
720 SkChopCubicAt(src, dst, tValues, roots);
742 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[])
753 count = SkFindUnitQuadRoots(Bx*Cy - By*Cx, Ax*Cy - Ay*Cx, Ax*By - Ay*Bx, tValues);
769 count = Sk64FindFixedQuadRoots(A, B, C, tValues);
777 SkScalar tValues[2];
778 int count = SkFindCubicInflections(src, tValues);
785 SkChopCubicAt(src, dst, tValues, count);
904 Eliminates repeated roots (so that all tValues are distinct, and are always
907 static int solve_cubic_polynomial(const SkFP coeff[4], SkScalar tValues[3])
915 return SkFindUnitQuadRoots(coeff[1], coeff[2], coeff[3], tValues);
939 SkScalar* roots = tValues;
963 int count = (int)(roots - tValues);
965 bubble_sort(tValues, count);
966 count = collaps_duplicates(tValues, count);
967 roots = tValues + count; // so we compute the proper count below
984 return (int)(roots - tValues);
1030 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3])
1051 tValues[maxCount++] = t[i];
1056 int SkChopCubicAtMaxCurvature(const SkPoint src[4], SkPoint dst[13], SkScalar tValues[3])
1060 if (tValues == NULL)
1061 tValues = t_storage;
1063 int count = SkFindCubicMaxCurvature(src, tValues);
1069 SkChopCubicAt(src, dst, tValues, count);
1453 SkScalar tValues[2];
1454 int roots = SkFindUnitQuadRoots(coeff[0], coeff[1], coeff[2], tValues);
1458 *t = tValues[0];