From deee7b81913ec0ce141d68e64ee0c449c55cfb2b Mon Sep 17 00:00:00 2001 From: hermet Date: Thu, 16 Jun 2011 10:03:37 +0000 Subject: [PATCH] evas/canvas - ok. it works fine. modified to use the standard computation again. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@60386 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_map.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/canvas/evas_map.c b/src/lib/canvas/evas_map.c index 06cbc34..dcf7698 100644 --- a/src/lib/canvas/evas_map.c +++ b/src/lib/canvas/evas_map.c @@ -715,8 +715,8 @@ evas_map_util_rotate(Evas_Map *m, double degrees, Evas_Coord cx, Evas_Coord cy) xx = x * cos(r); yy = x * sin(r); - x = xx + (y * cos(r + M_PI_2)); - y = yy + (y * sin(r + M_PI_2)); + x = xx - (y * sin(r)); + y = yy + (y * cos(r)); p->px = p->x = x + cx; p->py = p->y = y + cy; @@ -772,24 +772,24 @@ evas_map_util_3d_rotate(Evas_Map *m, double dx, double dy, double dz, { xx = x * cos(rz); yy = x * sin(rz); - x = xx + (y * cos(rz + M_PI_2)); - y = yy + (y * sin(rz + M_PI_2)); + x = xx - (y * sin(rz)); + y = yy + (y * cos(rz)); } if (ry != 0.0) { xx = x * cos(ry); zz = x * sin(ry); - x = xx + (z * cos(ry + M_PI_2)); - z = zz + (z * sin(ry + M_PI_2)); + x = xx - (z * sin(ry)); + z = zz + (z * cos(ry)); } if (rx != 0.0) { zz = z * cos(rx); yy = z * sin(rx); - z = zz + (y * cos(rx + M_PI_2)); - y = yy + (y * sin(rx + M_PI_2)); + z = zz - (y * sin(rx)); + y = yy + (y * cos(rx)); } p->px = p->x = x + cx; -- 2.7.4