
Former-commit-id: 5d29910bbfc137430264f8b08887f7997a86dbf1 Former-commit-id: 3b8af4a36c0345a24dc06753afa9c32f6b97714e
36 lines
507 B
C
36 lines
507 B
C
#ifndef MAPPOINTS_H
|
|
#define MAPPOINTS_H
|
|
|
|
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;
|
|
|
|
#endif |