improve matrix to quaternion

This commit is contained in:
Recep Aslantas
2018-04-09 00:46:00 +03:00
parent 381b2fdcc0
commit f0daaca58b
5 changed files with 86 additions and 87 deletions

View File

@@ -55,12 +55,8 @@ test_rand_angle(void) {
void
test_rand_quat(versor q) {
srand((unsigned int)time(NULL));
q[0] = drand48();
q[1] = drand48();
q[2] = drand48();
q[3] = drand48();
glm_quat(q, drand48(), drand48(), drand48(), drand48());
glm_quat_normalize(q);
}