Go to the source code of this file.
◆ BOOST_AUTO_TEST_SUITE_END()
| BOOST_AUTO_TEST_SUITE_END |
( |
| ) |
|
◆ BOOST_REQUIRE() [1/2]
| BOOST_REQUIRE |
( |
clipped. | has_value() = =c.ExpectedClippedSeg.has_value() | ) |
|
◆ BOOST_REQUIRE() [2/2]
| BOOST_REQUIRE |
( |
intersection. | has_value() = =c.ExpectedIntersection.has_value() | ) |
|
◆ BOOST_TEST()
| BOOST_TEST |
( |
contains | = =c.ExpectedContains | ) |
|
◆ if() [1/2]
◆ if() [2/2]
◆ ClipToBox_cases
Initial value:{
{
"Center to right edge",
},
{
"Centre to corner",
BOX2I{ VECTOR2{ -1000, -1000 }, VECTOR2{ 2000, 2000 } },
},
{
"Ray not in the box",
BOX2I{ VECTOR2{ -1000, -1000 }, VECTOR2{ 2000, 2000 } },
std::nullopt,
},
{
"Ray starts outside but crosses box",
BOX2I{ VECTOR2{ -1000, -1000 }, VECTOR2{ 2000, 2000 } },
},
}
Define a general 2D-vector/point.
VECTOR2< int32_t > VECTOR2I
Definition at line 129 of file test_half_line.cpp.
◆ Contains_cases
◆ Intersect_cases
Initial value:{
{
"Simple cross",
},
{
"Parallel, no intersection",
std::nullopt,
}
}
Definition at line 100 of file test_half_line.cpp.