From: Kaj-Michael Lang Date: Wed, 25 Jul 2007 09:30:08 +0000 (+0300) Subject: misc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c96cc2ed6223e44b00865bf7755d8179c63dd8;p=mapper misc --- diff --git a/src/latlon.h b/src/latlon.h index 774756d..ec07c1d 100644 --- a/src/latlon.h +++ b/src/latlon.h @@ -1,5 +1,16 @@ +#ifndef _LATLON_H +#define _LATLON_H + #include +/* Int ranges for integerized lat/lon */ +#define LATLON_MAX 2147483646 +#define LATLON_MIN -2147483646 +#define EARTH_RADIUS (3440.06479f) + gint32 lon2mp_int(gdouble lon); gint32 lat2mp_int(gdouble lat); +gfloat calculate_distance(gfloat lat1, gfloat lon1, gfloat lat2, gfloat lon2); +gint calculate_idistance(gint lat1, gint lon1, gint lat2, gint lon2); +#endif