Annotation of researchv8dc/cmd/map/libmap/bicentric.c, revision 1.1.1.1

1.1       root        1: #include "map.h"
                      2: 
                      3: static struct coord center;
                      4: 
                      5: Xbicentric(p,x,y)
                      6: struct place *p;
                      7: float *x, *y;
                      8: {
                      9:        if(p->wlon.c<=.01||p->nlat.c<=.01)
                     10:                return(-1);
                     11:        *x = -center.c*p->wlon.s/p->wlon.c;
                     12:        *y = p->nlat.s/(p->nlat.c*p->wlon.c);
                     13:        return(*x**x+*y**y<=9);
                     14: }
                     15: 
                     16: int (*bicentric(l))()
                     17: float l;
                     18: {
                     19:        l = fabs(l);
                     20:        if(l>89)
                     21:                return(0);
                     22:        deg2rad(l,&center);
                     23:        return(Xbicentric);
                     24: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.