Go to the source code of this file.
◆ cubicQuadIntersection()
Definition at line 58 of file PathOpsCubicQuadIntersectionTest.cpp.
58 {
59 int iIndex = static_cast<int>(index);
71 int order2 = reduce2.
reduce(quad);
72 if (order1 != 4) {
73 SkDebugf(
"[%d] cubic order=%d\n", iIndex, order1);
75 }
76 if (order2 != 3) {
77 SkDebugf(
"[%d] quad order=%d\n", iIndex, order2);
79 }
82 for (
int pt = 0; pt <
roots; ++pt) {
83 double tt1 =
i[0][pt];
85 double tt2 =
i[1][pt];
88 SkDebugf(
"%s [%d,%d] x!= t1=%g (%g,%g) t2=%g (%g,%g)\n",
89 __FUNCTION__, iIndex, pt, tt1, xy1.
fX, xy1.
fY, tt2, xy2.
fX, xy2.
fY);
90 }
92 }
94}
static struct quadCubic quadCubicTests[]
bool ValidCubic(const SkDCubic &cubic)
bool ValidQuad(const SkDQuad &quad)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
#define REPORTER_ASSERT(r, cond,...)
SkDPoint fPts[kPointCount]
SkDPoint fPts[kPointCount]
bool approximatelyEqual(const SkDPoint &a) const
void debugSet(const SkDPoint *pts)
SkDPoint ptAtT(double t) const
int reduce(const SkDCubic &cubic, Quadratics)
◆ DEF_TEST() [1/2]
DEF_TEST |
( |
PathOpsCubicQuadIntersection |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 96 of file PathOpsCubicQuadIntersectionTest.cpp.
96 {
100 }
101}
static const int quadCubicTests_count
static void cubicQuadIntersection(skiatest::Reporter *reporter, int index)
◆ DEF_TEST() [2/2]
DEF_TEST |
( |
PathOpsCubicQuadIntersectionOneOff |
, |
|
|
reporter |
|
|
) |
| |
◆ quadCubicTests
◆ quadCubicTests_count