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