5REG_FIDDLE(Path_IsQuadDegenerate, 256, 256,
true, 0) {
7 auto debugster = [](
const SkPath& path,
bool exact) ->
void {
8 SkDebugf(
"quad (%1.8g,%1.8g), (%1.8g,%1.8g), (%1.8g,%1.8g) is %s" "degenerate, %s\n",
9 path.getPoint(0).fX, path.getPoint(0).fY, path.getPoint(1).fX,
10 path.getPoint(1).fY, path.getPoint(2).fX, path.getPoint(2).fY,
12 "" :
"not ", exact ?
"exactly" :
"nearly");
15 path.moveTo({100, 100});
16 path.quadTo({100.00001f, 100.00001f}, {100.00002f, 100.00002f});
17 offset.addPath(path, 1000, 1000);
18 for (
bool exact : {
false,
true } ) {
19 debugster(path, exact);