aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Terrain.BasicTerrain
diff options
context:
space:
mode:
authorAdam Frisby2007-04-20 14:49:24 +0000
committerAdam Frisby2007-04-20 14:49:24 +0000
commitae8824985c65cf2005acdafbf62db0d3c7b26860 (patch)
tree079f3ebd616fe31d6c89a7fb2e372a1eaca10be5 /OpenSim.Terrain.BasicTerrain
parentHopefully fixed the forward slash bug in the gridurl set up (diff)
downloadopensim-SC_OLD-ae8824985c65cf2005acdafbf62db0d3c7b26860.zip
opensim-SC_OLD-ae8824985c65cf2005acdafbf62db0d3c7b26860.tar.gz
opensim-SC_OLD-ae8824985c65cf2005acdafbf62db0d3c7b26860.tar.bz2
opensim-SC_OLD-ae8824985c65cf2005acdafbf62db0d3c7b26860.tar.xz
Terrain:
* Added 'rescale' command for normalising a terrain between two values
Diffstat (limited to 'OpenSim.Terrain.BasicTerrain')
-rw-r--r--OpenSim.Terrain.BasicTerrain/TerrainEngine.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
index 65ad3ac..f97045a 100644
--- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
@@ -82,6 +82,11 @@ namespace OpenSim.Terrain
82 return heights; 82 return heights;
83 } 83 }
84 84
85 public void setRange(float min, float max)
86 {
87 heightmap.normalise((double)min, (double)max);
88 }
89
85 /// <summary> 90 /// <summary>
86 /// Loads a file consisting of 256x256 doubles and imports it as an array into the map. 91 /// Loads a file consisting of 256x256 doubles and imports it as an array into the map.
87 /// </summary> 92 /// </summary>