X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/50a14534a51f892500ee82f867e8ab2f85b936ae..057a78bcfaa6b6a962e4dde9690cb755a61b481e:/src/vikcoord.h?ds=sidebyside diff --git a/src/vikcoord.h b/src/vikcoord.h index 735a3678..305e82ee 100644 --- a/src/vikcoord.h +++ b/src/vikcoord.h @@ -22,6 +22,8 @@ #ifndef _VIKING_VIKCOORD_H #define _VIKING_VIKCOORD_H +#include "coords.h" + typedef gshort VikCoordMode; #define VIK_COORD_UTM 0 #define VIK_COORD_LATLON 1 @@ -55,6 +57,8 @@ 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!!! */ #endif