public static void ThrowErrorIfOutside(double value, double minInclusive, double maxInclusive) { ThrowIfOutside <double> .ThrowIfOutsideRange(value, minInclusive, maxInclusive); }
public static void ThrowErrorIfOutside(int value, int minInclusive, int maxInclusive) { ThrowIfOutside <int> .ThrowIfOutsideRange(value, minInclusive, maxInclusive); }
public static double NormalizeWaveToZeroToOne(double value) { ThrowIfOutside <double> .ThrowIfOutsideRange(value, -1.0, 1.0); return((value + 1.0) / 2.0); }