29 using OpenSim.Region.Framework.Interfaces;
35 #region ITerrainPaintableEffect Members
39 double strength,
double duration,
int startX,
int endX,
int startY,
int endY)
41 int s = (int) (Math.Pow(2, strength) + 0.5);
45 for (x = startX; x <= endX; x++)
47 for (y = startY; y <= endY; y++)
53 double r = Math.Sqrt((x - rx) * (x - rx) + ((y - ry) * (y - ry)));
54 double z = Math.Cos(r * Math.PI / (s * 2));
56 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)