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