• Home
  • Raw
  • Download

Lines Matching refs:tValues

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