2020-01-20 07:22:58 +01:00
|
|
|
#ifndef MAPPOINTS_H
|
|
|
|
#define MAPPOINTS_H
|
|
|
|
|
2020-02-27 07:44:30 +01:00
|
|
|
float *mapPoints_relative;
|
2017-09-17 16:46:48 +02:00
|
|
|
int mapPoints_count;
|
2020-01-20 07:22:58 +01:00
|
|
|
|
2020-02-27 07:44:30 +01:00
|
|
|
//extern float mapPoints[];
|
|
|
|
|
|
|
|
float *mapPoints;
|
2020-01-20 07:22:58 +01:00
|
|
|
|
|
|
|
typedef struct Point{
|
2020-02-27 07:44:30 +01:00
|
|
|
float lat;
|
|
|
|
float lon;
|
2020-01-20 07:22:58 +01:00
|
|
|
struct Point *next;
|
|
|
|
} Point;
|
|
|
|
|
|
|
|
typedef struct Polygon{
|
2020-02-27 07:44:30 +01:00
|
|
|
float lat_min;
|
|
|
|
float lat_max;
|
|
|
|
float lon_min;
|
|
|
|
float lon_max;
|
2020-01-20 07:22:58 +01:00
|
|
|
|
|
|
|
Point *points;
|
|
|
|
int numPoints;
|
|
|
|
|
|
|
|
struct Polygon *next;
|
|
|
|
} Polygon;
|
|
|
|
|
|
|
|
typedef struct QuadTree{
|
2020-02-27 07:44:30 +01:00
|
|
|
float lat_min;
|
|
|
|
float lat_max;
|
|
|
|
float lon_min;
|
|
|
|
float lon_max;
|
2020-01-20 07:22:58 +01:00
|
|
|
|
|
|
|
Polygon *polygons;
|
|
|
|
|
|
|
|
struct QuadTree *nw;
|
|
|
|
struct QuadTree *sw;
|
|
|
|
struct QuadTree *ne;
|
|
|
|
struct QuadTree *se;
|
|
|
|
} QuadTree;
|
|
|
|
|
|
|
|
QuadTree root;
|
|
|
|
|
|
|
|
#endif
|