Removed <iostream> in GLM tests, use <cstdio> instead
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <glm/gtc/epsilon.hpp>
|
||||
#include <glm/gtx/string_cast.hpp>
|
||||
#include <glm/gtx/euler_angles.hpp>
|
||||
#include <iostream>
|
||||
#include <cstdio>
|
||||
|
||||
namespace test_eulerAngleX
|
||||
{
|
||||
@@ -302,17 +302,17 @@ namespace test_eulerAngleYXZ
|
||||
|
||||
glm::fmat4 rotationInvertedY = glm::eulerAngleY(-1.f*first) * glm::eulerAngleX(second) * glm::eulerAngleZ(third);
|
||||
glm::fmat4 rotationDumb = glm::fmat4();
|
||||
rotationDumb = glm::rotate(rotationDumb, first, glm::fvec3(0,1,0));
|
||||
rotationDumb = glm::rotate(rotationDumb, second, glm::fvec3(1,0,0));
|
||||
rotationDumb = glm::rotate(rotationDumb, third, glm::fvec3(0,0,1));
|
||||
rotationDumb = glm::rotate(rotationDumb, first, glm::fvec3(0,1,0));
|
||||
rotationDumb = glm::rotate(rotationDumb, second, glm::fvec3(1,0,0));
|
||||
rotationDumb = glm::rotate(rotationDumb, third, glm::fvec3(0,0,1));
|
||||
|
||||
std::cout << glm::to_string(glm::fmat3(rotationEuler)) << std::endl;
|
||||
std::cout << glm::to_string(glm::fmat3(rotationDumb)) << std::endl;
|
||||
std::cout << glm::to_string(glm::fmat3(rotationInvertedY )) << std::endl;
|
||||
std::printf("%s\n", glm::to_string(glm::fmat3(rotationEuler)).c_str());
|
||||
std::printf("%s\n", glm::to_string(glm::fmat3(rotationDumb)).c_str());
|
||||
std::printf("%s\n", glm::to_string(glm::fmat3(rotationInvertedY)).c_str());
|
||||
|
||||
std::cout <<"\nRESIDUAL\n";
|
||||
std::cout << glm::to_string(glm::fmat3(rotationEuler-(rotationDumb))) << std::endl;
|
||||
std::cout << glm::to_string(glm::fmat3(rotationEuler-(rotationInvertedY ))) << std::endl;
|
||||
std::printf("\nRESIDUAL\n");
|
||||
std::printf("%s\n", glm::to_string(glm::fmat3(rotationEuler-(rotationDumb))).c_str());
|
||||
std::printf("%s\n", glm::to_string(glm::fmat3(rotationEuler-(rotationInvertedY))).c_str());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user