|
|
researchv8 Dan Cross
#include "map.h"
struct coord stdpar;
Xmecca(place, x, y)
struct place *place;
float *x, *y;
{
*x = - place->wlon.l;
*y = -(place->nlat.c*stdpar.s -
place->nlat.s*stdpar.c*place->wlon.c)/stdpar.c;
if(fabs(place->wlon.l) > 0.01)
*y *= *x/sin(*x);
if(fabs(*y)>2.0)
return(0);
if(place->nlat.s*stdpar.s +
place->nlat.c*stdpar.c*place->wlon.c <0)
return(-1);
return(1);
}
int (*mecca(par))()
float par;
{
if(fabs(par)>80.)
return(0);
deg2rad(par,&stdpar);
return(Xmecca);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.