]> git.mxchange.org Git - flightgear.git/commitdiff
Updated to use FG_EPSILON
authorcurt <curt>
Mon, 23 Mar 1998 20:35:41 +0000 (20:35 +0000)
committercurt <curt>
Mon, 23 Mar 1998 20:35:41 +0000 (20:35 +0000)
DEM/dem.c
DEM/dem.h

index 1d783564de300d6b0d518ec11136f90db2888354..ae46f8689921165551b5d2bcc94dbfc6f57de371 100644 (file)
--- a/DEM/dem.c
+++ b/DEM/dem.c
@@ -34,6 +34,8 @@
 #include "dem.h"
 #include "leastsqs.h"
 
+#include <Include/fg_constants.h>
+
 
 fgDEM::fgDEM( void ) {
     // printf("class fgDEM CONstructor called.\n");
@@ -395,7 +397,7 @@ double fgDEM::interpolate_altitude( float dem_data[DEM_SIZE_1][DEM_SIZE_1],
        
        // printf("  zA = %.2f  zB = %.2f\n", zA, zB);
 
-       if ( dx > EPSILON ) {
+       if ( dx > FG_EPSILON ) {
            elev = dy * (zB - zA) / dx + zA;
        } else {
            elev = zA;
@@ -427,7 +429,7 @@ double fgDEM::interpolate_altitude( float dem_data[DEM_SIZE_1][DEM_SIZE_1],
        // printf("  zA = %.2f  zB = %.2f\n", zA, zB );
        // printf("  xB - xA = %.2f\n", col_step * dy / row_step);
 
-       if ( dy > EPSILON ) {
+       if ( dy > FG_EPSILON ) {
            elev = dx * (zB - zA) / dy    + zA;
        } else {
            elev = zA;
@@ -685,6 +687,9 @@ fgDEM::~fgDEM( void ) {
 
 
 // $Log$
+// Revision 1.2  1998/03/23 20:35:41  curt
+// Updated to use FG_EPSILON
+//
 // Revision 1.1  1998/03/19 02:54:47  curt
 // Reorganized into a class lib called fgDEM.
 //
index b8ffc0d140607609f33e9e5e874cfd7702ea6cba..64f04e4b4a86d53a36b0af50320a0ae1239b2e44 100644 (file)
--- a/DEM/dem.h
+++ b/DEM/dem.h
@@ -33,7 +33,6 @@
 #include <Scenery/bucketutils.h>
 
 
-#define EPSILON 0.000001
 #define DEM_SIZE 1200
 #define DEM_SIZE_1 1201
 
@@ -131,6 +130,9 @@ public:
 
 
 // $Log$
+// Revision 1.2  1998/03/23 20:35:42  curt
+// Updated to use FG_EPSILON
+//
 // Revision 1.1  1998/03/19 02:54:47  curt
 // Reorganized into a class lib called fgDEM.
 //