Lines Matching defs:roots
597 // NOTE: We only need the roots, so a uniform scale factor does not affect the solution.
604 // If -cuspThreshold <= discr_over_4 <= cuspThreshold, it means the two roots are within
635 // The two roots are close enough that we can consider them a single cusp.
637 // Pick the average of both roots.
669 float2 roots = float2{q,c} / float2{a,q};
671 auto inside = (roots > kEpsilon) & (roots < (1 - kEpsilon));
673 if (inside[1] && roots[0] != roots[1]) {
674 if (roots[0] > roots[1]) {
675 roots = skvx::shuffle<1,0>(roots); // Sort.
677 roots.store(T);
680 T[0] = roots[0];
684 T[0] = roots[1];