| 6 | }; |
| 7 | |
| 8 | TEST_F(TriBox2DTest, simple) { |
| 9 | // . |
| 10 | // : . |
| 11 | // : . |
| 12 | // +-:-+ . |
| 13 | // | :......:. |
| 14 | // +---+ |
| 15 | const Float center[2] = {-0.0, 0.0}; |
| 16 | const Float size[2] = {0.25, 0.25}; |
| 17 | const Float tri[3][2] = { |
| 18 | {0.0, 0.0}, |
| 19 | {1.0, 0.0}, |
| 20 | {0.0, 1.0} |
| 21 | }; |
| 22 | ASSERT_EQ(1, TriBox2D::triBoxOverlap(center, size, tri)); |
| 23 | } |
| 24 | |
| 25 | TEST_F(TriBox2DTest, simple2) { |
| 26 | // . |
nothing calls this directly
no test coverage detected