]> Pileus Git - grits/blobdiff - src/grits-util.h
Correct FOV_DIST and MPPX calculations
[grits] / src / grits-util.h
index 0fa144d2175ba8a99cd2b933c4652cc399462336..8e7a2fd075d46c365a56a0bb679577a9cfc53bdb 100644 (file)
@@ -180,7 +180,7 @@ void grits_bounds_set_bounds(GritsBounds *bounds,
  *
  * Used by GritsOpenGL to set up the drawing window
  */
-#define FOV_DIST   2000.0
+#define FOV_DIST   2078.46
 
 /**
  * MPPX:
@@ -190,7 +190,7 @@ void grits_bounds_set_bounds(GritsBounds *bounds,
  *
  * Returns: the resolution in meters per pixel
  */
-#define MPPX(dist) (4*dist/FOV_DIST)
+#define MPPX(dist) (dist/FOV_DIST)
 
 void lle2xyz(gdouble lat, gdouble lon, gdouble elev,
                gdouble *x, gdouble *y, gdouble *z);