From: Jorge G. <cl...@us...> - 2006-10-11 17:09:15
|
Update of /cvsroot/easycalc/easycalc In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv17673 Modified Files: grtaps.c Log Message: Tracking polar graphs, x & y show the rectangular coordinates of the function (instead of the pen) Index: grtaps.c =================================================================== RCS file: /cvsroot/easycalc/easycalc/grtaps.c,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** grtaps.c 10 Oct 2006 00:58:36 -0000 1.28 --- grtaps.c 11 Oct 2006 17:09:11 -0000 1.29 *************** *** 624,629 **** func_get_value(stack,angle_usr,&r,NULL); ! dx = graph_xgr2scr(r*cos(angle_rad)); ! dy = graph_ygr2scr(r*sin(angle_rad)); if (!finite(angle_rad) || !RctPtInRectangle(dx,dy,bounds)) { dy = -1; --- 624,631 ---- func_get_value(stack,angle_usr,&r,NULL); ! realx = r*cos(angle_rad); ! realy = r*sin(angle_rad); ! dx = graph_xgr2scr(realx); ! dy = graph_ygr2scr(realy); if (!finite(angle_rad) || !RctPtInRectangle(dx,dy,bounds)) { dy = -1; |