]> Pileus Git - grits/blobdiff - src/gis-util.h
Document GisOpenGL
[grits] / src / gis-util.h
index cf3b09faf9189ad57b93b581df81b68958d2fd8c..234bb16b84f091dd4a365774adb88aa5a3fdc242 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -18,6 +18,8 @@
 #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
@@ -65,8 +67,6 @@
  * 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)