3 #include "projection.h"
5 /*! A integer mercator coordinate */
11 /*! A integer mercator coordinate carrying its projection */
14 int x; /*!< X-Value */
15 int y; /*!< Y-Value */
23 //! A double mercator coordinate
25 double x; /*!< X-Value */
26 double y; /*!< Y-Value */
29 //! A WGS84 coordinate
31 double lng; /*!< Longitude */
32 double lat; /*!< Latitude */
35 //! A cartesian coordinate
36 struct coord_geo_cart {
37 double x; /*!< X-Value */
38 double y; /*!< Y-Value */
39 double z; /*!< Z-Value */
44 struct coord * coord_get(unsigned char **p);
45 struct coord * coord_new(int x, int y);
46 void coord_destroy(struct coord *c);
47 int coord_parse(const char *c_str, enum projection pro, struct coord *c_ret);
48 struct coord_rect * coord_rect_new(struct coord *lu, struct coord *rl);
49 void coord_rect_destroy(struct coord_rect *r);
50 int coord_rect_overlap(struct coord_rect *r1, struct coord_rect *r2);
51 int coord_rect_contains(struct coord_rect *r, struct coord *c);
52 void coord_rect_extend(struct coord_rect *r, struct coord *c);