public OscillationRangeSettings(WaveShapes waveShape) { WaveShape = waveShape; Frequency = new MinMax(1f, 2f); Amplitude = new MinMax(0f, 1f); Center = new MinMax(0f, 0f); Offset = new MinMax(0f, 100f); Ratio = new MinMax(0.5f, 0.5f); }
public static double Wrap(this double d, MinMax range) { return d.Wrap(range.Min, range.Max); }
public static bool IsBetween(this float f, MinMax range, bool exclusive) { return(f.IsBetween(range.Min, range.Max, exclusive)); }
public static bool IsBetween(this int i, MinMax range) { return(i.IsBetween((int)range.Min, (int)range.Max, false)); }
public static int Scale(this int i, MinMax currentRange, MinMax targetRange) { return i.Scale((int)currentRange.Min, (int)currentRange.Max, (int)targetRange.Min, (int)targetRange.Max); }
public static bool IsBetween(this int i, MinMax range) { return i.IsBetween((int)range.Min, (int)range.Max, false); }
public static int Wrap(this int i, MinMax range) { return i.Wrap((int)range.Min, (int)range.Max); }
public static bool IsBetween(this double d, MinMax range, bool exclusive) { return d.IsBetween(range.Min, range.Max, exclusive); }
public static bool IsBetween(this float f, MinMax range, bool exclusive) { return f.IsBetween(range.Min, range.Max, exclusive); }
public static bool IsBetween(this float f, MinMax range) { return f.IsBetween(range.Min, range.Max, false); }
public static float Clamp(this float f, MinMax range) { return f.Clamp(range.Min, range.Max); }
public static float Wrap(this float f, MinMax range) { return f.Wrap(range.Min, range.Max); }
public static int Wrap(this int i, MinMax range) { return(i.Wrap((int)range.Min, (int)range.Max)); }
public static bool IsBetween(this int i, MinMax range, bool exclusive) { return(i.IsBetween((int)range.Min, (int)range.Max, exclusive)); }
public static double Clamp(this double d, MinMax range) { return d.Clamp(range.Min, range.Max); }
public static bool IsBetween(this double d, MinMax range) { return d.IsBetween(range.Min, range.Max, false); }
public static float Scale(this float f, MinMax currentRange, MinMax targetRange) { return f.Scale(currentRange.Min, currentRange.Max, targetRange.Min, targetRange.Max); }
public static double Scale(this double d, MinMax currentRange, MinMax targetRange) { return d.Scale(currentRange.Min, currentRange.Max, targetRange.Min, targetRange.Max); }
public static float Wrap(this float f, MinMax range) { return(f.Wrap(range.Min, range.Max)); }
public static int Clamp(this int i, MinMax range) { return i.Clamp((int)range.Min, (int)range.Max); }
public static float Clamp(this float f, MinMax range) { return(f.Clamp(range.Min, range.Max)); }
public static bool IsBetween(this int i, MinMax range, bool exclusive) { return i.IsBetween((int)range.Min, (int)range.Max, exclusive); }
public static float Scale(this float f, MinMax currentRange, MinMax targetRange) { return(f.Scale(currentRange.Min, currentRange.Max, targetRange.Min, targetRange.Max)); }
public static bool IsBetween(this float f, MinMax range) { return(f.IsBetween(range.Min, range.Max, false)); }
public static int Scale(this int i, MinMax currentRange, MinMax targetRange) { return(i.Scale((int)currentRange.Min, (int)currentRange.Max, (int)targetRange.Min, (int)targetRange.Max)); }