From 2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 16 Jul 2007 15:40:11 +0000 Subject: changed to native line ending encoding --- bin/TerrainFilters/demofilter.cs | 98 ++++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 49 deletions(-) (limited to 'bin/TerrainFilters/demofilter.cs') diff --git a/bin/TerrainFilters/demofilter.cs b/bin/TerrainFilters/demofilter.cs index 1fdfc95..4b48571 100644 --- a/bin/TerrainFilters/demofilter.cs +++ b/bin/TerrainFilters/demofilter.cs @@ -1,50 +1,50 @@ -using System; -using libTerrain; -using OpenSim.Terrain; - -/// -/// A Demonstration Filter -/// -public class DemoFilter : ITerrainFilter -{ - public void Filter(Channel heightmap, string[] args) - { - Console.WriteLine("Hello world"); - } - - public string Register() - { - return "demofilter"; - } - - public string Help() - { - return "demofilter - Does nothing\n"; - } -} - -public class SineFilter : ITerrainFilter -{ - public void Filter(Channel heightmap, string[] args) - { - double max = heightmap.findMax(); - - for (int x = 0; x < heightmap.w; x++) - { - for (int y = 0; y < heightmap.h; y++) - { - heightmap.set(x,y,((Math.Sin(heightmap.get(x,y) * Convert.ToDouble(args[1])) + 1) / 2) * max); - } - } - } - - public string Register() - { - return "sinefilter"; - } - - public string Help() - { - return "sinefilter - Converts the heightmap to the functional output of a sine wave"; - } +using System; +using libTerrain; +using OpenSim.Terrain; + +/// +/// A Demonstration Filter +/// +public class DemoFilter : ITerrainFilter +{ + public void Filter(Channel heightmap, string[] args) + { + Console.WriteLine("Hello world"); + } + + public string Register() + { + return "demofilter"; + } + + public string Help() + { + return "demofilter - Does nothing\n"; + } +} + +public class SineFilter : ITerrainFilter +{ + public void Filter(Channel heightmap, string[] args) + { + double max = heightmap.findMax(); + + for (int x = 0; x < heightmap.w; x++) + { + for (int y = 0; y < heightmap.h; y++) + { + heightmap.set(x,y,((Math.Sin(heightmap.get(x,y) * Convert.ToDouble(args[1])) + 1) / 2) * max); + } + } + } + + public string Register() + { + return "sinefilter"; + } + + public string Help() + { + return "sinefilter - Converts the heightmap to the functional output of a sine wave"; + } } \ No newline at end of file -- cgit v1.1