From 41c96cc2ed6223e44b00865bf7755d8179c63dd8 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 25 Jul 2007 12:30:08 +0300 Subject: [PATCH] misc --- src/latlon.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.5