MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / TEST_F

Function TEST_F

tests/src/Misc/TriBox2DTest.h:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6};
7
8TEST_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
25TEST_F(TriBox2DTest, simple2) {
26 // .

Callers

nothing calls this directly

Calls 1

triBoxOverlapFunction · 0.50

Tested by

no test coverage detected