Lines Matching refs:tValues
435 SkScalar tValues[2]) { in SkFindCubicExtrema()
441 return SkFindUnitQuadRoots(A, B, C, tValues); in SkFindCubicExtrema()
525 const SkScalar tValues[], int tCount) { in SkChopCubicAt() argument
531 SkASSERT(lastT <= tValues[i] && tValues[i] <= 1); in SkChopCubicAt()
532 lastT = tValues[i]; in SkChopCubicAt()
543 float2 tt = float2::Load(tValues + i); in SkChopCubicAt()
545 float lastT = tValues[i - 1]; in SkChopCubicAt()
554 float t = tValues[i]; in SkChopCubicAt()
556 float lastT = tValues[i - 1]; in SkChopCubicAt()
689 SkScalar tValues[2]; in SkChopCubicAtYExtrema() local
691 src[3].fY, tValues); in SkChopCubicAtYExtrema()
693 SkChopCubicAt(src, dst, tValues, roots); in SkChopCubicAtYExtrema()
705 SkScalar tValues[2]; in SkChopCubicAtXExtrema() local
707 src[3].fX, tValues); in SkChopCubicAtXExtrema()
709 SkChopCubicAt(src, dst, tValues, roots); in SkChopCubicAtXExtrema()
731 int SkFindCubicInflections(const SkPoint src[4], SkScalar tValues[]) { in SkFindCubicInflections() argument
742 tValues); in SkFindCubicInflections()
746 SkScalar tValues[2]; in SkChopCubicAtInflections() local
747 int count = SkFindCubicInflections(src, tValues); in SkChopCubicAtInflections()
753 SkChopCubicAt(src, dst, tValues, count); in SkChopCubicAtInflections()
951 static int solve_cubic_poly(const SkScalar coeff[4], SkScalar tValues[3]) { in solve_cubic_poly()
953 return SkFindUnitQuadRoots(coeff[1], coeff[2], coeff[3], tValues); in solve_cubic_poly()
978 tValues[0] = SkTPin(neg2RootQ * SkScalarCos(theta/3) - adiv3, 0.0f, 1.0f); in solve_cubic_poly()
979 tValues[1] = SkTPin(neg2RootQ * SkScalarCos((theta + 2*SK_ScalarPI)/3) - adiv3, 0.0f, 1.0f); in solve_cubic_poly()
980 tValues[2] = SkTPin(neg2RootQ * SkScalarCos((theta - 2*SK_ScalarPI)/3) - adiv3, 0.0f, 1.0f); in solve_cubic_poly()
984 bubble_sort(tValues, 3); in solve_cubic_poly()
985 return collaps_duplicates(tValues, 3); in solve_cubic_poly()
995 tValues[0] = SkTPin(A - adiv3, 0.0f, 1.0f); in solve_cubic_poly()
1033 int SkFindCubicMaxCurvature(const SkPoint src[4], SkScalar tValues[3]) { in SkFindCubicMaxCurvature()
1044 int numRoots = solve_cubic_poly(coeffX, tValues); in SkFindCubicMaxCurvature()
1051 SkScalar tValues[3]) { in SkChopCubicAtMaxCurvature()
1054 if (tValues == nullptr) { in SkChopCubicAtMaxCurvature()
1055 tValues = t_storage; in SkChopCubicAtMaxCurvature()
1065 tValues[count++] = roots[i]; in SkChopCubicAtMaxCurvature()
1073 SkChopCubicAt(src, dst, tValues, count); in SkChopCubicAtMaxCurvature()
1215 SkScalar tValues[2]; in conic_find_extrema() local
1216 int roots = SkFindUnitQuadRoots(coeff[0], coeff[1], coeff[2], tValues); in conic_find_extrema()
1220 *t = tValues[0]; in conic_find_extrema()