7 SkRect rect = { 30, 50, 40, 60 };
8 SkRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
9 for (
auto contained :
tests) {
10 SkDebugf(
"rect: (%g, %g, %g, %g) %s (%g, %g, %g, %g)\n",
11 rect.left(), rect.top(), rect.right(), rect.bottom(),
12 rect.contains(contained) ?
"contains" :
"does not contain",
13 contained.left(), contained.top(), contained.right(), contained.bottom());