Home
last modified time | relevance | path

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

/external/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()
/external/skqp/src/pathops/
DSkPathOpsCubic.cpp460 double neg2RootQ = -2 * sqrt(Q); in RootsReal() local
462 r = neg2RootQ * cos(theta / 3) - adiv3; in RootsReal()
465 r = neg2RootQ * cos((theta + 2 * PI) / 3) - adiv3; in RootsReal()
469 r = neg2RootQ * cos((theta - 2 * PI) / 3) - adiv3; in RootsReal()
/external/skqp/src/core/
DSkGeometry.cpp773 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly() local
775 tValues[0] = SkScalarPin(neg2RootQ * SkScalarCos(theta/3) - adiv3, 0, 1); in solve_cubic_poly()
776 tValues[1] = SkScalarPin(neg2RootQ * SkScalarCos((theta + 2*SK_ScalarPI)/3) - adiv3, 0, 1); in solve_cubic_poly()
777 tValues[2] = SkScalarPin(neg2RootQ * SkScalarCos((theta - 2*SK_ScalarPI)/3) - adiv3, 0, 1); in solve_cubic_poly()
/external/skia/src/core/
DSkGeometry.cpp976 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly() local
978 tValues[0] = SkTPin(neg2RootQ * SkScalarCos(theta/3) - adiv3, 0.0f, 1.0f); in solve_cubic_poly()
979 tValues[1] = SkTPin(neg2RootQ * SkScalarCos((theta + 2*SK_ScalarPI)/3) - adiv3, 0.0f, 1.0f); in solve_cubic_poly()
980 tValues[2] = SkTPin(neg2RootQ * SkScalarCos((theta - 2*SK_ScalarPI)/3) - adiv3, 0.0f, 1.0f); in solve_cubic_poly()