X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/a25c4c508425a98c4aba9b5d72c6e57c985f9da2..e8518759e6c64fac28783cf190b82705dc4bbb87:/src/vikcoord.h diff --git a/src/vikcoord.h b/src/vikcoord.h index a3d0cf5f..2b510009 100644 --- a/src/vikcoord.h +++ b/src/vikcoord.h @@ -24,6 +24,8 @@ #include "coords.h" +G_BEGIN_DECLS + typedef gshort VikCoordMode; #define VIK_COORD_UTM 0 #define VIK_COORD_LATLON 1 @@ -42,9 +44,6 @@ typedef struct { /* notice we can cast to either UTM or LatLon */ /* possible more modes to come? xy? we'll leave that as an option */ -VikCoord *vik_coord_new(); -void vik_coord_free(VikCoord *coord); - void vik_coord_convert(VikCoord *coord, VikCoordMode dest_mode); void vik_coord_copy_convert(const VikCoord *coord, VikCoordMode dest_mode, VikCoord *dest); gdouble vik_coord_diff(const VikCoord *c1, const VikCoord *c2); @@ -57,6 +56,10 @@ void vik_coord_to_utm ( const VikCoord *coord, struct UTM *dest ); gboolean vik_coord_equals ( const VikCoord *coord1, const VikCoord *coord2 ); +void vik_coord_set_area(const VikCoord *coord, const struct LatLon *wh, VikCoord *tl, VikCoord *br); +gboolean vik_coord_inside(const VikCoord *coord, const VikCoord *tl, const VikCoord *br); /* all coord operations MUST BE ABSTRACTED!!! */ +G_END_DECLS + #endif