21 #include <ns3/simulator.h>
35 :
TestSuite (
"box-line-intersection", UNIT)
38 Box box =
Box (890.0, 990.0, 840.0, 870.0, 0.0, 6.0);
78 :
TestCase (BuildNameString (indexPos1, indexPos2, box, intersect)),
79 m_indexPos1 (indexPos1),
80 m_indexPos2 (indexPos2),
82 m_intersect (intersect)
93 std::ostringstream oss;
94 oss <<
"Box line intersection test : checking"
95 <<
" pos1 index " << indexPos1 <<
" and pos2 index " << indexPos2
96 <<
" intersection with the box (" << box.
xMin <<
", " << box.
xMax
97 <<
", " << box.
yMin <<
", " << box.
yMax
98 <<
", " << box.
zMin <<
", " << box.
zMax
99 <<
"). The expected intersection flag = " << intersect <<
" ";
113 Simulator::Destroy ();
124 pos = Vector (934.0, 852.0, 1.5);
127 pos = Vector (931.0,861.0, 1.5);
130 pos = Vector (484.0, 298.0, 1.5);
133 pos = Vector (1000.0, 850.0, 1.5);
136 pos = Vector (850.0, 850.0, 1.5);
139 pos = Vector (934.0, 852.0, boxHeight + 14.0);