/*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#ifndef __GIS_UTIL_H__
#define __GIS_UTIL_H__
+#include <glib.h>
+
#define EARTH_R (6371000)
#define EARTH_C (2*G_PI*EARTH_R)
#define NORTH 90
* xyz2lle: 0.0, 0.0, 10.0 -> 0.0, 0.0, 0.0
*/
-#define azim2lon(azim) ((azim)*180/G_PI)
-#define lon2azim(lon) ((lon)*G_PI/180)
#define incl2lat(incl) (90-(incl)*180/G_PI)
#define lat2incl(lat) ((90-(lat))*G_PI/180)
#define rad2elev(rad) ((rad)-EARTH_R)