Searched refs:neg2RootQ (Results 1 – 2 of 2) sorted by relevance
462 double neg2RootQ = -2 * sqrt(Q); in RootsReal() local464 r = neg2RootQ * cos(theta / 3) - adiv3; in RootsReal()467 r = neg2RootQ * cos((theta + 2 * PI) / 3) - adiv3; in RootsReal()471 r = neg2RootQ * cos((theta - 2 * PI) / 3) - adiv3; in RootsReal()
972 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly() local974 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()