4 /*! A integer mercator coordinate */
15 //! A double mercator coordinate
17 double x; /*!< X-Value */
18 double y; /*!< Y-Value */
21 //! A WGS84 coordinate
23 double lng; /*!< Longitude */
24 double lat; /*!< Latitude */
29 struct coord * coord_get(unsigned char **p);
30 struct coord * coord_new(int x, int y);
31 void coord_destroy(struct coord *c);
32 int coord_parse(const char *c_str, enum projection pro, struct coord *c_ret);
33 struct coord_rect * coord_rect_new(struct coord *lu, struct coord *rl);
34 void coord_rect_destroy(struct coord_rect *r);
35 int coord_rect_overlap(struct coord_rect *r1, struct coord_rect *r2);
36 int coord_rect_contains(struct coord_rect *r, struct coord *c);
37 void coord_rect_extend(struct coord_rect *r, struct coord *c);