
Former-commit-id: bf7cd851d24efe93f88057a11a73ba8a7bcb963f Former-commit-id: 82afe4283fbea1f513e805144e433c6d8d0da28f
43 lines
611 B
C
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 |