Lines Matching refs:discr
588 static float solve_quadratic_equation_for_midtangent(float a, float b, float c, float discr) {
590 float q = -.5f * (b + copysignf(sqrtf(discr), b));
639 float discr = b*b - 4*a*c;
640 if (discr > 0) { // This will only be false if the curve is a line.
641 return solve_quadratic_equation_for_midtangent(a, b, c, discr);
833 double discr = 3*D2*D2 - 4*D1*D3;
834 if (discr > 0) { // Serpentine.
836 double q = 3*D2 + copysign(sqrt(3*discr), D2);
840 } else if (discr < 0) { // Loop.
842 double q = D2 + copysign(sqrt(-discr), D2);