Searched refs:Sk2d (Results 1 – 1 of 1) sorted by relevance
/third_party/skia/tests/ |
D | WangsFormulaTest.cpp | 424 using Sk2d = skvx::Vec<2, double>; in DEF_TEST() typedef 425 const auto eval_conic = [](const SkPoint pts[3], float w, float t) -> Sk2d { in DEF_TEST() 426 const auto eval = [](Sk2d A, Sk2d B, Sk2d C, float t) -> Sk2d { in DEF_TEST() 430 const Sk2d p0 = {pts[0].fX, pts[0].fY}; in DEF_TEST() 431 const Sk2d p1 = {pts[1].fX, pts[1].fY}; in DEF_TEST() 432 const Sk2d p1w = p1 * w; in DEF_TEST() 433 const Sk2d p2 = {pts[2].fX, pts[2].fY}; in DEF_TEST() 434 Sk2d numer = eval(p2 - p1w * 2 + p0, (p1w - p0) * 2, p0, t); in DEF_TEST() 436 Sk2d denomC = {1, 1}; in DEF_TEST() 437 Sk2d denomB = {2 * (w - 1), 2 * (w - 1)}; in DEF_TEST() [all …]
|