From 81d626daf60d226f43618196dd33acaaacf476ea Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Thu, 27 Sep 2018 21:22:07 +0200 Subject: [PATCH] Added test for #764 --- test/gtx/gtx_matrix_interpolation.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/gtx/gtx_matrix_interpolation.cpp b/test/gtx/gtx_matrix_interpolation.cpp index 93398b66..38f0ce5d 100644 --- a/test/gtx/gtx_matrix_interpolation.cpp +++ b/test/gtx/gtx_matrix_interpolation.cpp @@ -4,7 +4,7 @@ #include -int test_axisAngle() +static int test_axisAngle() { int Error = 0; @@ -34,11 +34,24 @@ int test_axisAngle() return Error; } +static int test_rotate() +{ + glm::mat4 m2(1.0); + float myAngle = 1.0f; + m2 = glm::rotate(m2, myAngle, glm::vec3(1.0f, 0.0f, 0.0f)); + glm::vec3 m2Axis; + float m2Angle; + glm::axisAngle(m2, m2Axis, m2Angle); + + return 0; +} + int main() { int Error = 0; Error += test_axisAngle(); + Error += test_rotate(); return Error; }