From 9d1b42c39a779c84dd091a817d2f6e5f434777c4 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 25 Mar 2008 03:49:08 +0000 Subject: Comment out unused private methods. --- .../Modules/Terrain/PaintBrushes/FlattenSphere.cs | 65 +++++++++++----------- 1 file changed, 33 insertions(+), 32 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Terrain/PaintBrushes') diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs index 6cbd390..9bfb981 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs @@ -37,38 +37,39 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes return z; } - private double GetBilinearInterpolate(double x, double y, ITerrainChannel map) - { - int w = map.Width; - int h = map.Height; - - if (x > w - 2.0) - x = w - 2.0; - if (y > h - 2.0) - y = h - 2.0; - if (x < 0.0) - x = 0.0; - if (y < 0.0) - y = 0.0; - - int stepSize = 1; - double h00 = map[(int)x, (int)y]; - double h10 = map[(int)x + stepSize, (int)y]; - double h01 = map[(int)x, (int)y + stepSize]; - double h11 = map[(int)x + stepSize, (int)y + stepSize]; - double h1 = h00; - double h2 = h10; - double h3 = h01; - double h4 = h11; - double a00 = h1; - double a10 = h2 - h1; - double a01 = h3 - h1; - double a11 = h1 - h2 - h3 + h4; - double partialx = x - (int)x; - double partialz = y - (int)y; - double hi = a00 + (a10 * partialx) + (a01 * partialz) + (a11 * partialx * partialz); - return hi; - } +// TODO: unused +// private double GetBilinearInterpolate(double x, double y, ITerrainChannel map) +// { +// int w = map.Width; +// int h = map.Height; + +// if (x > w - 2.0) +// x = w - 2.0; +// if (y > h - 2.0) +// y = h - 2.0; +// if (x < 0.0) +// x = 0.0; +// if (y < 0.0) +// y = 0.0; + +// int stepSize = 1; +// double h00 = map[(int)x, (int)y]; +// double h10 = map[(int)x + stepSize, (int)y]; +// double h01 = map[(int)x, (int)y + stepSize]; +// double h11 = map[(int)x + stepSize, (int)y + stepSize]; +// double h1 = h00; +// double h2 = h10; +// double h3 = h01; +// double h4 = h11; +// double a00 = h1; +// double a10 = h2 - h1; +// double a01 = h3 - h1; +// double a11 = h1 - h2 - h3 + h4; +// double partialx = x - (int)x; +// double partialz = y - (int)y; +// double hi = a00 + (a10 * partialx) + (a01 * partialz) + (a11 * partialx * partialz); +// return hi; +// } #region ITerrainPaintableEffect Members -- cgit v1.1