Пример #1
0
 public static void ThrowErrorIfOutside(double value, double minInclusive, double maxInclusive)
 {
     ThrowIfOutside <double> .ThrowIfOutsideRange(value, minInclusive, maxInclusive);
 }
Пример #2
0
 public static void ThrowErrorIfOutside(int value, int minInclusive, int maxInclusive)
 {
     ThrowIfOutside <int> .ThrowIfOutsideRange(value, minInclusive, maxInclusive);
 }
Пример #3
0
        public static double NormalizeWaveToZeroToOne(double value)
        {
            ThrowIfOutside <double> .ThrowIfOutsideRange(value, -1.0, 1.0);

            return((value + 1.0) / 2.0);
        }