29 using OpenSim.Region.Framework.Interfaces;
35 #region ITerrainPaintableEffect Members
38 double strength,
double duration,
int startX,
int endX,
int startY,
int endY)
40 int s = (int) (Math.Pow(2, strength) + 0.5);
44 for (x = startX; x <= endX; x++)
46 for (y = startY; y <= endY; y++)
52 double r = Math.Sqrt((x-rx) * (x-rx) + ((y-ry) * (y-ry)));
53 double z = Math.Cos(r * Math.PI / (s * 2));
56 double newz = map[x, y] - z * duration;
void PaintEffect(ITerrainChannel map, bool[,] mask, double rx, double ry, double rz, double strength, double duration, int startX, int endX, int startY, int endY)