Browse Source

Added test for #764

Christophe Riccio 7 years ago
parent
commit
81d626daf6
1 changed files with 14 additions and 1 deletions
  1. 14 1
      test/gtx/gtx_matrix_interpolation.cpp

+ 14 - 1
test/gtx/gtx_matrix_interpolation.cpp

@@ -4,7 +4,7 @@
 
 
 #include <iostream>
 #include <iostream>
 
 
-int test_axisAngle()
+static int test_axisAngle()
 {
 {
 	int Error = 0;
 	int Error = 0;
 
 
@@ -34,11 +34,24 @@ int test_axisAngle()
 	return Error;
 	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 main()
 {
 {
 	int Error = 0;
 	int Error = 0;
 
 
 	Error += test_axisAngle();
 	Error += test_axisAngle();
+	Error += test_rotate();
 
 
 	return Error;
 	return Error;
 }
 }