Changeset 1846 in Sophya for trunk/SophyaPI/PI/pigraphx.cc


Ignore:
Timestamp:
Dec 31, 2001, 5:18:54 PM (24 years ago)
Author:
ansari
Message:

Correction/amelioration trace de string pour sortie postscript - Reza 31/12/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraphx.cc

    r1640 r1846  
    300300    case  PI_FStarMarker :
    301301      for(k=0; k<10; k++) {
    302         x[k] = (int)(starcoordx[k]*(float)mMrkSz+(float)x0+0.5);
    303         y[k] = (int)(starcoordy[k]*(float)mMrkSz+(float)y0+0.5);
     302        x[k] = (int)(starcoordx[k]*hmsz+(float)x0+0.5);
     303        y[k] = (int)(starcoordy[k]*hmsz+(float)y0+0.5);
    304304        }
    305305      x[10] = x[0];   y[10] = y[0];
     
    719719double pio52 = pio5/2.;
    720720double cpi2 = M_PI/2.-pio5; 
    721 double re = 1.2;  // Rayon externe
    722 double ri = 0.5; //  rayon interne pour rext=1.2
     721// Pentagone inscrit dans un cercle de rayon R1 = 1
     722// les pointes de l'etoile seront inscrites dans un cercle
     723// de rayon R2 = 2.61803
     724double re = 1.;  // Rayon externe
     725double ri = 0.38; //  rayon interne pour rext=1.2
    723726for(int k=0; k<5; k++) {
    724727  starcoordx[2*k] = cos(k*pio5+cpi2)*re;
Note: See TracChangeset for help on using the changeset viewer.