Rev 18352 | Rev 18356 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18352 | Rev 18353 | ||
---|---|---|---|
Line 1914... | Line 1914... | ||
1914 | for (i = 0; i < pm->pcnt; i+=4) |
1914 | for (i = 0; i < pm->pcnt; i+=4) |
1915 | if (hypgeodaux(pm->pd+i,res)){ |
1915 | if (hypgeodaux(pm->pd+i,res)){ |
1916 | scale2(res[2],res[2],&rx,&ry); |
1916 | scale2(res[2],res[2],&rx,&ry); |
1917 | scale(res,qq,1); |
1917 | scale(res,qq,1); |
1918 | myGdImageArc(image,qq[0],qq[1],rx,ry,res[3]/DEG,res[4]/DEG,pm->color[0]); |
1918 | myGdImageArc(image,qq[0],qq[1],rx,ry,res[3]/DEG,res[4]/DEG,pm->color[0]); |
- | 1919 | if(tikz_file) |
|
1919 |
|
1920 | fprintf(tikz_file,"(%i,%i)arc(%f:%f:%i and %i)", |
- | 1921 | (int)rint(qq[0]+rx*cos(res[3])), |
|
- | 1922 | flip((int)rint(qq[1]+ry*sin(res[3]))), |
|
1920 |
|
1923 | res[3]/DEG,res[4]/DEG,(int)rint(rx),-(int)rint(ry)); |
1921 |
|
1924 | } |
1922 | else { |
1925 | else { |
1923 | scale(pm->pd+i,qq,2); |
1926 | scale(pm->pd+i,qq,2); |
1924 | gdImageLine(image,qq[0],qq[1],qq[2],qq[3],pm->color[0]); |
1927 | gdImageLine(image,qq[0],qq[1],qq[2],qq[3],pm->color[0]); |
1925 | if(tikz_file) fprintf(tikz_file,"(%i,%i)--(%i,%i)", |
1928 | if(tikz_file) fprintf(tikz_file,"(%i,%i)--(%i,%i)", |
1926 | qq[0],flip(qq[1]),qq[2],flip(qq[3])); |
1929 | qq[0],flip(qq[1]),qq[2],flip(qq[3])); |