   Arrange points on circle
  Hello,I am currently stuck with the following problem: I want to arrange points at equal steps on a circle (e.g. every 45 degrees).I have given the center of the circle, the radius and the angles.Theoretically (I thought) it should work with this formula:x = x_m + r*cos(t)y = y_m + r*sin(t)with (x_m,y_m) being the center of the circle, r the radius and t the angle.Now I use the following C code:for (i=0; i<360; i+=45){angle = (double)i * PI / 180.0;x = x_m + r*cos(angle);y = y_m + r*sin(angle);plot(x,y);}But when I plot the resulting x/y coordinates, the points are not arranged correctly.Regards,   
  C math functions works in radians, not degree. So you need to increment your angle by π/4.   ;Quote:Original post by dnaxxBut when I plot the resulting x/y coordinates, the points are not arranged correctly.How are they arranged? Any chance of a screenshot?It looks correct at a first glance to me.   ;  thanks for the hint. But I am alread using radians. Btw: I already found the error. The formulas I posted first work fine :).   ;Quote:Original post by dnaxxthanks for the hint. But I am alread using radians. Btw: I already found the error. The formulas I posted first work fine :).Yeah, sorry, I read how you increment your counter and thought you used degree.   