Home
last modified time | relevance | path

Searched refs:neg2RootQ (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/src/pathops/
DSkPathOpsCubic.cpp462 double neg2RootQ = -2 * sqrt(Q); in RootsReal() local
464 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()
/third_party/skia/src/core/
DSkGeometry.cpp972 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly() local
974 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()