On Thu, 16 Jun 2011, Enlightenment SVN wrote:
> Log: > evas/canvas - reverted evas_map since some texture mapping is incorrect. the maths were correct, though. Maybe there is a problem elsewhere ? Vincent > > > > Author: hermet > Date: 2011-06-16 01:46:16 -0700 (Thu, 16 Jun 2011) > New Revision: 60381 > Trac: http://trac.enlightenment.org/e/changeset/60381 > > Modified: > trunk/evas/src/lib/canvas/evas_map.c > > Modified: trunk/evas/src/lib/canvas/evas_map.c > =================================================================== > --- trunk/evas/src/lib/canvas/evas_map.c 2011-06-16 08:24:02 UTC (rev > 60380) > +++ trunk/evas/src/lib/canvas/evas_map.c 2011-06-16 08:46:16 UTC (rev > 60381) > @@ -713,10 +713,10 @@ > x = p->x - cx; > y = p->y - cy; > > - xx = (x * cos(r)); > - yy = (x * sin(r)); > - x = xx - (y * sin(r)); > - y = yy + (y * cos(r)); > + xx = x * cos(r); > + yy = x * sin(r); > + x = xx + (y * cos(r + M_PI_2)); > + y = yy + (y * sin(r + M_PI_2)); > > p->px = p->x = x + cx; > p->py = p->y = y + cy; > @@ -772,24 +772,24 @@ > { > xx = x * cos(rz); > yy = x * sin(rz); > - x = xx - (y * sin(rz)); > - y = yy + (y * cos(rz)); > + x = xx + (y * cos(rz + M_PI_2)); > + y = yy + (y * sin(rz + M_PI_2)); > } > > if (ry != 0.0) > { > xx = x * cos(ry); > zz = x * sin(ry); > - x = xx - (z * sin(ry)); > - z = zz + (z * cos(ry)); > + x = xx + (z * cos(ry + M_PI_2)); > + z = zz + (z * sin(ry + M_PI_2)); > } > > if (rx != 0.0) > { > zz = z * cos(rx); > yy = z * sin(rx); > - z = zz - (y * sin(rx)); > - y = yy + (y * cos(rx)); > + z = zz + (y * cos(rx + M_PI_2)); > + y = yy + (y * sin(rx + M_PI_2)); > } > > p->px = p->x = x + cx; > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel