Home | History | Annotate | Download | only in tests

Lines Matching refs:rect2

43     SkDRect rect, rect2;
52 rect2.set(line[0]);
53 rect2.add(line[1]);
54 REPORTER_ASSERT(reporter, rect2.fLeft == SkTMin(line[0].fX, line[1].fX));
55 REPORTER_ASSERT(reporter, rect2.fTop == SkTMin(line[0].fY, line[1].fY));
56 REPORTER_ASSERT(reporter, rect2.fRight == SkTMax(line[0].fX, line[1].fX));
57 REPORTER_ASSERT(reporter, rect2.fBottom == SkTMax(line[0].fY, line[1].fY));
59 REPORTER_ASSERT(reporter, rect.intersects(&rect2));
73 rect2.setBounds(quad);
74 REPORTER_ASSERT(reporter, rect.intersects(&rect2));
76 SkDPoint leftTop = {rect2.fLeft, rect2.fTop};
78 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom};
93 rect2.setBounds(cubic);
94 REPORTER_ASSERT(reporter, rect.intersects(&rect2));
96 SkDPoint leftTop = {rect2.fLeft, rect2.fTop};
98 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom};