diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs index 9bfb981..d907ed2 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs | |||
@@ -31,12 +31,6 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
31 | { | 31 | { |
32 | public class FlattenSphere : ITerrainPaintableEffect | 32 | public class FlattenSphere : ITerrainPaintableEffect |
33 | { | 33 | { |
34 | private double SphericalFactor(double x, double y, double rx, double ry, double size) | ||
35 | { | ||
36 | double z = size * size - ((x - rx) * (x - rx) + (y - ry) * (y - ry)); | ||
37 | return z; | ||
38 | } | ||
39 | |||
40 | // TODO: unused | 34 | // TODO: unused |
41 | // private double GetBilinearInterpolate(double x, double y, ITerrainChannel map) | 35 | // private double GetBilinearInterpolate(double x, double y, ITerrainChannel map) |
42 | // { | 36 | // { |
@@ -78,7 +72,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
78 | strength = TerrainUtil.MetersToSphericalStrength(strength); | 72 | strength = TerrainUtil.MetersToSphericalStrength(strength); |
79 | 73 | ||
80 | int x, y; | 74 | int x, y; |
81 | double[,] tweak = new double[map.Width, map.Height]; | 75 | double[,] tweak = new double[map.Width,map.Height]; |
82 | 76 | ||
83 | double area = strength; | 77 | double area = strength; |
84 | double step = strength / 4.0; | 78 | double step = strength / 4.0; |
@@ -123,5 +117,11 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
123 | } | 117 | } |
124 | 118 | ||
125 | #endregion | 119 | #endregion |
120 | |||
121 | private double SphericalFactor(double x, double y, double rx, double ry, double size) | ||
122 | { | ||
123 | double z = size * size - ((x - rx) * (x - rx) + (y - ry) * (y - ry)); | ||
124 | return z; | ||
125 | } | ||
126 | } | 126 | } |
127 | } | 127 | } \ No newline at end of file |