private void IterateOverStoredLayers(ref double result, int collectionLen, double xpos, double ypos) { for (int i = 0; i < collectionLen; i++) { Octave current = oc.octaves[i]; double scale = current.GetAmplitude(); result += current.perlin.Generate(xpos * (i + 1) * (i + 1), ypos * (i + 1) * (i + 1)) * scale; } }
public void AddToOctaves(Octave oct) { octaves.Add(oct); }