• Home
  • Raw
  • Download

Lines Matching refs:roots

78 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) {  in SkFindUnitQuadRoots()
79 SkASSERT(roots); in SkFindUnitQuadRoots()
82 return return_check_zero(valid_unit_divide(-C, B, roots)); in SkFindUnitQuadRoots()
85 SkScalar* r = roots; in SkFindUnitQuadRoots()
101 if (r - roots == 2) { in SkFindUnitQuadRoots()
102 if (roots[0] > roots[1]) { in SkFindUnitQuadRoots()
104 swap(roots[0], roots[1]); in SkFindUnitQuadRoots()
105 } else if (roots[0] == roots[1]) { // nearly-equal? in SkFindUnitQuadRoots()
109 return return_check_zero((int)(r - roots)); in SkFindUnitQuadRoots()
686 int roots = SkFindCubicExtrema(src[0].fY, src[1].fY, src[2].fY, in SkChopCubicAtYExtrema() local
689 SkChopCubicAt(src, dst, tValues, roots); in SkChopCubicAtYExtrema()
690 if (dst && roots > 0) { in SkChopCubicAtYExtrema()
693 if (roots == 2) { in SkChopCubicAtYExtrema()
697 return roots; in SkChopCubicAtYExtrema()
702 int roots = SkFindCubicExtrema(src[0].fX, src[1].fX, src[2].fX, in SkChopCubicAtXExtrema() local
705 SkChopCubicAt(src, dst, tValues, roots); in SkChopCubicAtXExtrema()
706 if (dst && roots > 0) { in SkChopCubicAtXExtrema()
709 if (roots == 2) { in SkChopCubicAtXExtrema()
713 return roots; in SkChopCubicAtXExtrema()
1054 SkScalar roots[3]; in SkChopCubicAtMaxCurvature() local
1055 int rootCount = SkFindCubicMaxCurvature(src, roots); in SkChopCubicAtMaxCurvature()
1060 if (0 < roots[i] && roots[i] < 1) { in SkChopCubicAtMaxCurvature()
1061 tValues[count++] = roots[i]; in SkChopCubicAtMaxCurvature()
1117 int roots = SkFindCubicMaxCurvature(src, maxCurvature); in SkFindCubicCusp() local
1118 for (int index = 0; index < roots; ++index) { in SkFindCubicCusp()
1140 typedef int (SkDCubic::*InterceptProc)(double intercept, double roots[3]) const;
1145 double roots[3]; in cubic_dchop_at_intercept() local
1146 int count = (cubic.set(src).*method)(intercept, roots); in cubic_dchop_at_intercept()
1148 SkDCubicPair pair = cubic.chopAt(roots[0]); in cubic_dchop_at_intercept()
1212 int roots = SkFindUnitQuadRoots(coeff[0], coeff[1], coeff[2], tValues); in conic_find_extrema() local
1213 SkASSERT(0 == roots || 1 == roots); in conic_find_extrema()
1215 if (1 == roots) { in conic_find_extrema()