(circle128) Minor opt
This commit is contained in:
parent
f80279e1f2
commit
6d93884d85
|
@ -40,13 +40,15 @@ sint(char *s)
|
|||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int seg = 12, offset = seg / 4, i;
|
||||
double segf = (double)seg;
|
||||
int seg, offset, i;
|
||||
double segf;
|
||||
if(argc < 2) {
|
||||
printf("usage: circle128 length\n", argc);
|
||||
return 1;
|
||||
}
|
||||
seg = sint(argv[1]);
|
||||
segf = (double)seg;
|
||||
offset = seg / 4;
|
||||
printf("%d points on a circle128:\n\n", seg);
|
||||
for(i = 0; i < seg; ++i) {
|
||||
double cx = 128, cy = 128, r = 128;
|
||||
|
|
Loading…
Reference in New Issue