X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=tst%2Fmath%2FIntersectTest.cpp;h=2ed07fb2fe7e5e1792817da61d1aa8318f597392;hp=dc6667aaed3c03b05cc254bcbb31f04f03975feb;hb=0e061ce526fe46dd3e894223e5d646eb2e30f826;hpb=ee77237c575f255bb04cdae48c89956aa734c811 diff --git a/tst/math/IntersectTest.cpp b/tst/math/IntersectTest.cpp index dc6667a..2ed07fb 100644 --- a/tst/math/IntersectTest.cpp +++ b/tst/math/IntersectTest.cpp @@ -177,8 +177,8 @@ void IntersectTest::testBoxBoxIntersection() { glm::dvec3 normal(0); AABB box{ { -1, -1, -1 }, { 1, 1, 1 } }; // 2x2x2 cube centered around origin - glm::mat4 Ma(1); // identity - glm::mat4 Mb(1); // identity + glm::dmat4 Ma(1); // identity + glm::dmat4 Mb(1); // identity // they're identical, so should probably intersect ^^ CPPUNIT_ASSERT_MESSAGE( @@ -209,11 +209,11 @@ void IntersectTest::testBoxBoxIntersection() { ); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( "bad penetration depth (with rotation)", - 0.0142134428024292, depth, delta + 0.014213562373095, depth, delta ); AssertEqual( "bad intersection normal (with rotation)", - glm::dvec3(1, 0, 0), abs(normal) // normal can be in + or - x, therefore abs() + glm::dvec3(1, 0, 0), glm::abs(normal) // normal can be in + or - x, therefore abs() ); Mb = glm::translate(glm::dvec3(3, 0, 0)); // 3 to the right