5 #include <rive/math/aabb.hpp>
6 #include <rive/math/hit_test.hpp>
13 TEST_CASE("hittest-basics", "[hittest]") {
15 tester.reset({10, 10, 12, 12});
18 tester.line({20, 20});
21 REQUIRE(tester.test());
23 IAABB area = {81, 156, 84, 159};
34 for (int i = 1; i < 4; ++i) {
38 REQUIRE(tester.test());
41 TEST_CASE("hittest-mesh", "[hittest]") {
43 const IAABB area{10, 10, 12, 12};
50 uint16_t indices[] = {
55 REQUIRE(HitTester::testMesh(area, Span(verts, 3), Span(indices, 3)));