viz1090/mapdata.h
nathan c10fb0ad10 map quadtree in progress
Former-commit-id: bf7cd851d24efe93f88057a11a73ba8a7bcb963f
Former-commit-id: 82afe4283fbea1f513e805144e433c6d8d0da28f
2020-01-19 22:22:58 -08:00

43 lines
611 B
C

#ifndef MAPPOINTS_H
#define MAPPOINTS_H
double *mapPoints_relative;
int mapPoints_count;
extern double mapPoints[];
typedef struct Point{
double lat;
double lon;
struct Point *next;
} Point;
typedef struct Polygon{
double lat_min;
double lat_max;
double lon_min;
double lon_max;
Point *points;
int numPoints;
struct Polygon *next;
} Polygon;
typedef struct QuadTree{
double lat_min;
double lat_max;
double lon_min;
double lon_max;
Polygon *polygons;
struct QuadTree *nw;
struct QuadTree *sw;
struct QuadTree *ne;
struct QuadTree *se;
} QuadTree;
QuadTree root;
#endif