Révision 200

TrouNoir/TrouNoir.py (revision 200)
183 183
  re=12.;
184 184
  ro=100.;
185 185
  //tho=PI/180.*80;
186
  tho=PI/180.*0.;
186
  tho=PI/180.*80.;
187 187
  q=-2;
188 188
  dist=1;
189 189
  raie=0;
......
239 239
     vp=vs;
240 240
     rungekutta(&ps,&us,&vs,pp,up,vp,h,m,b);	  
241 241
     rp[nh]=fabs(b/us);
242
     ExitOnImpact = (((fmod(pp,PI)<fmod(phd,PI))&&(fmod(ps,PI)>fmod(phd,PI)))||((fmod(ps,PI)<fmod(phd,PI))&&(fmod(pp,PI)>fmod(phd,PI))))&&(rp[nh]>ri)&&(rp[nh]<re)?1:0;          
242
//     ExitOnImpact = (((fmod(pp,PI)<fmod(phd,PI))&&(fmod(ps,PI)>fmod(phd,PI)))||((fmod(ps,PI)<fmod(phd,PI))&&(fmod(pp,PI)>fmod(phd,PI))))&&(rp[nh]>ri)&&(rp[nh]<re)?1:0;          
243
     ExitOnImpact = ((fmod(pp,PI)<fmod(phd,PI))&&(fmod(ps,PI)>fmod(phd,PI)))&&(rp[nh]>ri)&&(rp[nh]<re)?1:0;          
243 244

  
244 245
  } while ((rp[nh]>=rs)&&(rp[nh]<=rp[0])&&(ExitOnImpact==0));
245 246

  

Formats disponibles : Unified diff