[GRASS-SVN] r34588 - grass/trunk/raster/r.watershed/seg
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 28 02:02:30 EST 2008
Author: hamish
Date: 2008-11-28 02:02:30 -0500 (Fri, 28 Nov 2008)
New Revision: 34588
Modified:
grass/trunk/raster/r.watershed/seg/Gwater.h
Log:
more precise constants; merge from ram/
Modified: grass/trunk/raster/r.watershed/seg/Gwater.h
===================================================================
--- grass/trunk/raster/r.watershed/seg/Gwater.h 2008-11-28 07:00:34 UTC (rev 34587)
+++ grass/trunk/raster/r.watershed/seg/Gwater.h 2008-11-28 07:02:30 UTC (rev 34588)
@@ -16,8 +16,8 @@
#define NOMASK 1
#define MIN_SLOPE .00001
#define MIN_GRADIENT_DEGREES 1
-#define DEG_TO_RAD .017453293 /* pi / 180 */
-#define METER_TO_FOOT 3.281
+#define DEG_TO_RAD ((2 * M_PI) / 360.)
+#define METER_TO_FOOT (1 / 0.3048)
#define MAX_BYTES 2000000
#define PAGE_BLOCK 512
#define SROW 9
More information about the grass-commit
mailing list