Searched refs:inflectT (Results 1 – 3 of 3) sorted by relevance
/external/skqp/tests/ |
D | PathOpsTestCommon.cpp | 72 double inflectT[5]; in toQuadraticTs() local 73 int inflections = cubic->findInflections(inflectT); in toQuadraticTs() 76 inflections += cubic->findMaxCurvature(&inflectT[inflections]); in toQuadraticTs() 79 SkTQSort<double>(inflectT, &inflectT[inflections - 1]); in toQuadraticTs() 82 while (inflections && approximately_less_than_zero(inflectT[0])) { in toQuadraticTs() 83 memmove(inflectT, &inflectT[1], sizeof(inflectT[0]) * --inflections); in toQuadraticTs() 88 if (!approximately_equal(inflectT[start], inflectT[next])) { in toQuadraticTs() 93 memmove(&inflectT[start], &inflectT[next], sizeof(inflectT[0]) * (--inflections - start)); in toQuadraticTs() 96 while (inflections && approximately_greater_than_one(inflectT[inflections - 1])) { in toQuadraticTs() 101 pair = cubic->chopAt(inflectT[0]); in toQuadraticTs() [all …]
|
/external/skia/tests/ |
D | PathOpsTestCommon.cpp | 73 double inflectT[5]; in toQuadraticTs() local 74 int inflections = cubic->findInflections(inflectT); in toQuadraticTs() 77 inflections += cubic->findMaxCurvature(&inflectT[inflections]); in toQuadraticTs() 80 SkTQSort<double>(inflectT, inflectT + inflections); in toQuadraticTs() 83 while (inflections && approximately_less_than_zero(inflectT[0])) { in toQuadraticTs() 84 memmove(inflectT, &inflectT[1], sizeof(inflectT[0]) * --inflections); in toQuadraticTs() 89 if (!approximately_equal(inflectT[start], inflectT[next])) { in toQuadraticTs() 94 memmove(&inflectT[start], &inflectT[next], sizeof(inflectT[0]) * (--inflections - start)); in toQuadraticTs() 97 while (inflections && approximately_greater_than_one(inflectT[inflections - 1])) { in toQuadraticTs() 102 pair = cubic->chopAt(inflectT[0]); in toQuadraticTs() [all …]
|
D | GrPathUtilsTest.cpp | 23 float inflectT[2], convex180T[2]; in check_cubic_convex_180() local 24 if (int inflectN = SkFindCubicInflections(p, inflectT)) { in check_cubic_convex_180() 31 fabsf(inflectT[0] - inflectT[1]) >= SK_ScalarNearlyZero); in check_cubic_convex_180() 34 REPORTER_ASSERT(r, SkScalarNearlyEqual(inflectT[i], convex180T[i])); in check_cubic_convex_180()
|