From 2b766d53034ced3b4e3412c3edb88775cf8d43e3 Mon Sep 17 00:00:00 2001 From: Sergey Krivohatskiy Date: Tue, 23 Mar 2021 14:30:52 +0300 Subject: [PATCH] a few more tests for axisAngle Signed-off-by: Sergey Krivohatskiy --- test/gtx/gtx_matrix_interpolation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/gtx/gtx_matrix_interpolation.cpp b/test/gtx/gtx_matrix_interpolation.cpp index d505bee3..8d3a073e 100644 --- a/test/gtx/gtx_matrix_interpolation.cpp +++ b/test/gtx/gtx_matrix_interpolation.cpp @@ -87,6 +87,10 @@ static int test_axisAngle2() Error += testForAxisAngle(glm::vec3(1.0f, 0.0f, 0.0f), glm::pi()); Error += testForAxisAngle(glm::vec3(0.0f, 1.0f, 0.0f), -glm::pi()); Error += testForAxisAngle(glm::vec3(0.358f, 0.0716f, 0.9309f), -glm::pi()); + Error += testForAxisAngle(glm::vec3(1.0f, 0.0f, 0.0f), glm::pi() + 2e-6f); + Error += testForAxisAngle(glm::vec3(1.0f, 0.0f, 0.0f), glm::pi() + 1e-4f); + Error += testForAxisAngle(glm::vec3(0.0f, 1.0f, 0.0f), -glm::pi() + 1e-3f); + Error += testForAxisAngle(glm::vec3(0.358f, 0.0716f, 0.9309f), -glm::pi() + 5e-3f); return Error; }