File:  [Research Unix] / researchv8dc / cmd / map / libmap / bicentric.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

#include "map.h"

static struct coord center;

Xbicentric(p,x,y)
struct place *p;
float *x, *y;
{
	if(p->wlon.c<=.01||p->nlat.c<=.01)
		return(-1);
	*x = -center.c*p->wlon.s/p->wlon.c;
	*y = p->nlat.s/(p->nlat.c*p->wlon.c);
	return(*x**x+*y**y<=9);
}

int (*bicentric(l))()
float l;
{
	l = fabs(l);
	if(l>89)
		return(0);
	deg2rad(l,&center);
	return(Xbicentric);
}

unix.superglobalmegacorp.com

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