|
|
1.1 ! root 1: #include "map.h" ! 2: ! 3: struct coord stdpar; ! 4: float r0; ! 5: ! 6: Xbonne(place, x, y) ! 7: struct place *place; ! 8: float *x, *y; ! 9: { ! 10: double r, alpha; ! 11: r = r0 - place->nlat.l; ! 12: alpha = place->wlon.l * place->nlat.c / r; ! 13: *x = - r*sin(alpha); ! 14: *y = - r*cos(alpha); ! 15: return(1); ! 16: } ! 17: ! 18: int (*bonne(par))() ! 19: float par; ! 20: { ! 21: extern Xsinusoidal(); ! 22: if(fabs(par*RAD) < .01) ! 23: return(Xsinusoidal); ! 24: deg2rad(par, &stdpar); ! 25: r0 = stdpar.c/stdpar.s + stdpar.l; ! 26: return(Xbonne); ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.