No subject


Wed Nov 14 13:37:45 EST 2007


    double a, end_ang, ang, tot_sum, sum, step, r;

	while ( 1 ) {
	   if ( a > end_ang ) a = end_ang;
	   x = cx + r * cos ( a );
	   y = cy + r * sin ( a );
	   Vect_append_point ( Points, x, y, 0);

	   if ( a == end_ang ) {
	       ang = end_ang;
	       break;
	   } else {
	       a += step;
	   }
	}

One possiblity is that the "a == end_ang" test never becomes true
(even after the "a = end_ang" assignment), so the loop runs forever.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list