summaryrefslogtreecommitdiff
path: root/src/tests/eina/eina_test_matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eina/eina_test_matrix.c')
-rw-r--r--src/tests/eina/eina_test_matrix.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/eina/eina_test_matrix.c b/src/tests/eina/eina_test_matrix.c
index 1d54f21e3f..ac3afa827f 100644
--- a/src/tests/eina/eina_test_matrix.c
+++ b/src/tests/eina/eina_test_matrix.c
@@ -400,6 +400,7 @@ EFL_START_TEST(eina_matrix3_operations)
400 zx, zy, zz; 400 zx, zy, zz;
401 double tx = 20, ty = 30, ret; 401 double tx = 20, ty = 30, ret;
402 const double arr[] = {1, 1, 1, 1, 1, 1, 1, 1, 1}; 402 const double arr[] = {1, 1, 1, 1, 1, 1, 1, 1, 1};
403 double rotate_radian = 45.0 * M_PI / 180.0;
403 404
404 eina_matrix3_values_set(&m1, 405 eina_matrix3_values_set(&m1,
405 1, 0, 0, 406 1, 0, 0,
@@ -458,13 +459,12 @@ EFL_START_TEST(eina_matrix3_operations)
458 1, 0, 0, 459 1, 0, 0,
459 0, 1, 0, 460 0, 1, 0,
460 0, 0, 1); 461 0, 0, 1);
461 eina_matrix3_rotate(&m1, M_PI/2); 462 eina_matrix3_rotate(&m1, rotate_radian);
462 463 fail_if (!MATRIX3_CMP(m1.xx, m1.xy, m1.xz,
463 fail_if (!MATRIX3_CMP(round(m1.xx), round(m1.xy), round(m1.xz), 464 m1.yx, m1.yy, m1.yz,
464 round(m1.yx), round(m1.yy), round(m1.yz), 465 m1.zx, m1.zy, m1.zz,
465 round(m1.zx), round(m1.zy), round(m1.zz), 466 cosf(rotate_radian), -sinf(rotate_radian), 0,
466 0, -1, 0, 467 sinf(rotate_radian), cosf(rotate_radian), 0,
467 1, 0, 0,
468 0, 0, 1)); 468 0, 0, 1));
469 469
470 eina_matrix3_values_set(&m1, 470 eina_matrix3_values_set(&m1,