geom/sphere: add glancing ray test

This commit is contained in:
Danny Robson 2018-04-16 15:59:16 +10:00
parent 87d442772c
commit 1889a76e26

View File

@ -35,6 +35,12 @@ test_intersect (util::TAP::logger &tap)
{ util::point3f {0}, 1 }, { util::point3f {0}, 1 },
{ util::point3f {0,2,0}, util::vector3f {0,1,0} }, { util::point3f {0,2,0}, util::vector3f {0,1,0} },
"offset ray never intersects unit-origin sphere" "offset ray never intersects unit-origin sphere"
},
{
1.f,
{ util::point3f {1,1,1}, 1 },
{ util::point3f {2,2,1}, util::vector3f{-1,0,0} },
"glancing ray at unit distance"
} }
}; };