HW1

HW1 (Due by 3/29)3180217311.doc
void setCircle(float radius, int step)
{
     float x, y, theta;
     theta = (float) (2*M_PI/step);
     for (int i=0; i<step; i++) {
          x = radius * cos(theta * i);
          y = radius * sin(theta * i);
     }
}

Leave a Reply