Go to the source code of this file.
|
| REG_FIDDLE (Path_IsLineDegenerate, 256, 256, true, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Path_IsLineDegenerate |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Path_IsLineDegenerate.cpp.
5 {
7 SkPoint points[] = { {100, 100}, {100.000001f, 100.000001f}, {100.0001f, 100.0001f} };
8 for (
size_t i = 0; i < std::size(
points) - 1; ++i) {
9 for (bool exact : { false, true } ) {
10 SkDebugf(
"line from (%1.8g,%1.8g) to (%1.8g,%1.8g) is %s" "degenerate, %s\n",
13 ? "" : "not ", exact ? "exactly" : "nearly");
14 }
15 }
16}
17}
static const int points[]
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static bool IsLineDegenerate(const SkPoint &p1, const SkPoint &p2, bool exact)