
Former-commit-id: 59f44288ca1838e89e1f8c7463e88e91d5252c4b Former-commit-id: 8894cdb766d205bf630d4de44701894a53b95b12
45 lines
620 B
C
45 lines
620 B
C
#ifndef MAPPOINTS_H
|
|
#define MAPPOINTS_H
|
|
|
|
float *mapPoints_relative;
|
|
int mapPoints_count;
|
|
|
|
//extern float mapPoints[];
|
|
|
|
float *mapPoints;
|
|
|
|
typedef struct Point{
|
|
float lat;
|
|
float lon;
|
|
struct Point *next;
|
|
} Point;
|
|
|
|
typedef struct Polygon{
|
|
float lat_min;
|
|
float lat_max;
|
|
float lon_min;
|
|
float lon_max;
|
|
|
|
Point *points;
|
|
int numPoints;
|
|
|
|
struct Polygon *next;
|
|
} Polygon;
|
|
|
|
typedef struct QuadTree{
|
|
float lat_min;
|
|
float lat_max;
|
|
float lon_min;
|
|
float lon_max;
|
|
|
|
Polygon *polygons;
|
|
|
|
struct QuadTree *nw;
|
|
struct QuadTree *sw;
|
|
struct QuadTree *ne;
|
|
struct QuadTree *se;
|
|
} QuadTree;
|
|
|
|
QuadTree root;
|
|
|
|
#endif |