Home
last modified time | relevance | path

Searched refs:intersection (Results 1 - 2 of 2) sorted by relevance

/test/testfwk/arkxtest/uitest/test/
H A Drect_algorithm_test.cpp39 Rect intersection {0, 0, 0, 0}; in TEST()
43 ASSERT_FALSE(RectAlgorithm::ComputeIntersection(rect0, rect1, intersection)); // no overlap in TEST()
44 ASSERT_FALSE(RectAlgorithm::ComputeIntersection(rect0, rect2, intersection)); // no overlap in TEST()
45 ASSERT_TRUE(RectAlgorithm::ComputeIntersection(rect0, rect3, intersection)); // x,y-overlap in TEST()
46 ASSERT_EQ(100, intersection.left_); in TEST()
47 ASSERT_EQ(150, intersection.right_); in TEST()
48 ASSERT_EQ(300, intersection.top_); in TEST()
49 ASSERT_EQ(350, intersection.bottom_); in TEST()
50 intersection = {0, 0, 0, 0}; in TEST()
52 ASSERT_TRUE(RectAlgorithm::ComputeIntersection(rect0, rect4, intersection)); // in TEST()
[all...]
/test/testfwk/arkxtest/uitest/core/
H A Drect_algorithm.cpp162 continue; // no intersection, invalid overlay in ComputeMaxVisibleRegion()
164 auto intersection = Rect(0, 0, 0, 0); in ComputeMaxVisibleRegion() local
165 const auto intersected = RectAlgorithm::ComputeIntersection(rect, overlay, intersection); in ComputeMaxVisibleRegion()
166 if (intersected && RectAlgorithm::CheckEqual(rect, intersection)) { in ComputeMaxVisibleRegion()

Completed in 1 milliseconds