Esempio n. 1
0
 /// <summary>
 /// Reset the frequency, and resets all noise contributions as well as the total
 /// integrated noise.
 /// </summary>
 /// <param name="point">The point.</param>
 public void Reset(NoisePoint point)
 {
     Point.Set(point);
     OutputNoiseDensity = 0;
     TotalOutputNoise   = 0;
     TotalInputNoise    = 0;
 }
Esempio n. 2
0
            /// <summary>
            /// Sets the current noise data point.
            /// </summary>
            /// <param name="point">The noise data point.</param>
            public void SetCurrentPoint(NoisePoint point)
            {
                Point.Accept();
                Point.Value = point;

                // Reset the total noise density for our new point
                OutputNoiseDensity = 0;
                TotalOutputNoise   = 0;
                TotalInputNoise    = 0;
            }