From c070d2bbf3eca682166d9e1875aff194c61c3154 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Sat, 7 Apr 2007 17:30:11 +0000
Subject: ZOMG Comments!
---
OpenSim.Terrain.BasicTerrain/Normalise.cs | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
(limited to 'OpenSim.Terrain.BasicTerrain/Normalise.cs')
diff --git a/OpenSim.Terrain.BasicTerrain/Normalise.cs b/OpenSim.Terrain.BasicTerrain/Normalise.cs
index 507795b..0d37f44 100644
--- a/OpenSim.Terrain.BasicTerrain/Normalise.cs
+++ b/OpenSim.Terrain.BasicTerrain/Normalise.cs
@@ -6,6 +6,10 @@ namespace OpenSim.Terrain.BasicTerrain
{
static class Normalise
{
+ ///
+ /// Converts the heightmap to values ranging from 0..1
+ ///
+ /// The heightmap to be normalised
public static void normalise(float[,] map)
{
double max = findMax(map);
@@ -24,6 +28,11 @@ namespace OpenSim.Terrain.BasicTerrain
}
}
+ ///
+ /// Converts the heightmap to values ranging from 0..
+ ///
+ /// The heightmap to be normalised
+ /// The new maximum height value of the map
public static void normalise(float[,] map, double newmax)
{
double max = findMax(map);
@@ -42,6 +51,11 @@ namespace OpenSim.Terrain.BasicTerrain
}
}
+ ///
+ /// Finds the largest value in the heightmap
+ ///
+ /// The heightmap
+ /// The highest value
public static double findMax(float[,] map)
{
int x, y;
@@ -61,6 +75,11 @@ namespace OpenSim.Terrain.BasicTerrain
return max;
}
+ ///
+ /// Finds the lowest value in a heightmap
+ ///
+ /// The heightmap
+ /// The minimum value
public static double findMin(float[,] map)
{
int x, y;
--
cgit v1.1