mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 08:54:35 +00:00
Added test for #764
This commit is contained in:
parent
d1487eec8e
commit
81d626daf6
@ -4,7 +4,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user