Lines Matching refs:tValues
369 SkScalar tValues[2]) { in SkFindCubicExtrema()
375 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
427 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
432 SkASSERT(0 < tValues[i] && tValues[i] < 1); in SkChopCubicAt()
433 SkASSERT(0 < tValues[i+1] && tValues[i+1] < 1); in SkChopCubicAt()
434 SkASSERT(tValues[i] < tValues[i+1]); in SkChopCubicAt()
443 SkScalar t = tValues[0]; in SkChopCubicAt()
458 if (!valid_unit_divide(tValues[i+1] - tValues[i], in SkChopCubicAt()
459 SK_Scalar1 - tValues[i], &t)) { in SkChopCubicAt()
486 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local
488 src[3].fY, tValues); in SkChopCubicAtYExtrema()
490 SkChopCubicAt(src, dst, tValues, roots); in SkChopCubicAtYExtrema()
502 SkScalar tValues[2]; in SkChopCubicAtXExtrema() local
504 src[3].fX, tValues); in SkChopCubicAtXExtrema()
506 SkChopCubicAt(src, dst, tValues, roots); in SkChopCubicAtXExtrema()
528 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[]) { in SkFindCubicInflections() argument
539 tValues); in SkFindCubicInflections()
543 SkScalar tValues[2]; in SkChopCubicAtInflections() local
544 int count = SkFindCubicInflections(src, tValues); in SkChopCubicAtInflections()
550 SkChopCubicAt(src, dst, tValues, count); in SkChopCubicAtInflections()
748 static int solve_cubic_poly(const SkScalar coeff[4], SkScalar tValues[3]) { in solve_cubic_poly()
750 return SkFindUnitQuadRoots(coeff[1], coeff[2], coeff[3], tValues); in solve_cubic_poly()
775 tValues[0] = SkScalarPin(neg2RootQ * SkScalarCos(theta/3) - adiv3, 0, 1); in solve_cubic_poly()
776 tValues[1] = SkScalarPin(neg2RootQ * SkScalarCos((theta + 2*SK_ScalarPI)/3) - adiv3, 0, 1); in solve_cubic_poly()
777 tValues[2] = SkScalarPin(neg2RootQ * SkScalarCos((theta - 2*SK_ScalarPI)/3) - adiv3, 0, 1); in solve_cubic_poly()
781 bubble_sort(tValues, 3); in solve_cubic_poly()
782 return collaps_duplicates(tValues, 3); in solve_cubic_poly()
792 tValues[0] = SkScalarPin(A - adiv3, 0, 1); in solve_cubic_poly()
830 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]) { in SkFindCubicMaxCurvature()
841 int numRoots = solve_cubic_poly(coeffX, tValues); in SkFindCubicMaxCurvature()
848 SkScalar tValues[3]) { in SkChopCubicAtMaxCurvature()
851 if (tValues == nullptr) { in SkChopCubicAtMaxCurvature()
852 tValues = t_storage; in SkChopCubicAtMaxCurvature()
862 tValues[count++] = roots[i]; in SkChopCubicAtMaxCurvature()
870 SkChopCubicAt(src, dst, tValues, count); in SkChopCubicAtMaxCurvature()
1012 SkScalar tValues[2]; in conic_find_extrema() local
1013 int roots = SkFindUnitQuadRoots(coeff[0], coeff[1], coeff[2], tValues); in conic_find_extrema()
1017 *t = tValues[0]; in conic_find_extrema()