#include <world/Floor.hpp>
-#include <glm/gtx/io.hpp>
-
CPPUNIT_TEST_SUITE_REGISTRATION(tacos::test::FloorTest);
namespace tacos {
ray.origin = glm::vec3(19.993f, 49.947f, 106.518f);
ray.direction = glm::normalize(glm::vec3(-0.07f, -0.528f, -0.846f));
CPPUNIT_ASSERT_MESSAGE(
- "weird ray from interactive testing doesn't intersect :(",
+ "weird ray #1 from interactive testing doesn't intersect :(",
floor.Intersection(ray, point)
);
AssertEqual(
ray.origin = glm::vec3(19.995f, 49.952f, 106.515f);
ray.direction = glm::normalize(glm::vec3(-0.046f, -0.477f, -0.878f));
CPPUNIT_ASSERT_MESSAGE(
- "weird ray from interactive testing doesn't intersect :(",
+ "weird ray #2 from interactive testing doesn't intersect :(",
floor.Intersection(ray, point)
);
AssertEqual(
"unexpected intersection point",
- glm::vec3(15.17783f, 0.0f, 14.5698f), point,
+ glm::vec3(15.17783f, 0.0f, 14.56982f), point,
0.00001f
);
}