1 #include "voro++_2d.hh"
11 void test(int &x
,int &y
){
15 int main(int argc
,char **argv
){
16 char *outfn(new char[1000]);
17 sprintf(outfn
,"circle");
18 FILE *fp
=safe_fopen(outfn
,"w");
19 for(int i
=0;i
<200;i
++){
20 fprintf(fp
,"%i %f %f\n",i
+4,cos((double)2 * 3.14159 * ((double)i
)/200),sin((double)2*3.14159 * ((double)i
)/200));
22 cout
<< "the sin is" << sin (30.0 * 3.14159/180) << endl
;