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);
 }
Exemplo n.º 2
0
 public static double Wrap(this double d, MinMax range)
 {
     return d.Wrap(range.Min, range.Max);
 }
Exemplo n.º 3
0
 public static bool IsBetween(this float f, MinMax range, bool exclusive)
 {
     return(f.IsBetween(range.Min, range.Max, exclusive));
 }
Exemplo n.º 4
0
 public static bool IsBetween(this int i, MinMax range)
 {
     return(i.IsBetween((int)range.Min, (int)range.Max, false));
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 6
0
 public static bool IsBetween(this int i, MinMax range)
 {
     return i.IsBetween((int)range.Min, (int)range.Max, false);
 }
Exemplo n.º 7
0
 public static int Wrap(this int i, MinMax range)
 {
     return i.Wrap((int)range.Min, (int)range.Max);
 }
Exemplo n.º 8
0
 public static bool IsBetween(this double d, MinMax range, bool exclusive)
 {
     return d.IsBetween(range.Min, range.Max, exclusive);
 }
Exemplo n.º 9
0
 public static bool IsBetween(this float f, MinMax range, bool exclusive)
 {
     return f.IsBetween(range.Min, range.Max, exclusive);
 }
Exemplo n.º 10
0
 public static bool IsBetween(this float f, MinMax range)
 {
     return f.IsBetween(range.Min, range.Max, false);
 }
Exemplo n.º 11
0
 public static float Clamp(this float f, MinMax range)
 {
     return f.Clamp(range.Min, range.Max);
 }
Exemplo n.º 12
0
 public static float Wrap(this float f, MinMax range)
 {
     return f.Wrap(range.Min, range.Max);
 }
Exemplo n.º 13
0
 public static int Wrap(this int i, MinMax range)
 {
     return(i.Wrap((int)range.Min, (int)range.Max));
 }
Exemplo n.º 14
0
 public static bool IsBetween(this int i, MinMax range, bool exclusive)
 {
     return(i.IsBetween((int)range.Min, (int)range.Max, exclusive));
 }
Exemplo n.º 15
0
 public static double Clamp(this double d, MinMax range)
 {
     return d.Clamp(range.Min, range.Max);
 }
Exemplo n.º 16
0
 public static bool IsBetween(this double d, MinMax range)
 {
     return d.IsBetween(range.Min, range.Max, false);
 }
Exemplo n.º 17
0
 public static float Scale(this float f, MinMax currentRange, MinMax targetRange)
 {
     return f.Scale(currentRange.Min, currentRange.Max, targetRange.Min, targetRange.Max);
 }
Exemplo n.º 18
0
 public static double Scale(this double d, MinMax currentRange, MinMax targetRange)
 {
     return d.Scale(currentRange.Min, currentRange.Max, targetRange.Min, targetRange.Max);
 }
Exemplo n.º 19
0
 public static float Wrap(this float f, MinMax range)
 {
     return(f.Wrap(range.Min, range.Max));
 }
Exemplo n.º 20
0
 public static int Clamp(this int i, MinMax range)
 {
     return i.Clamp((int)range.Min, (int)range.Max);
 }
Exemplo n.º 21
0
 public static float Clamp(this float f, MinMax range)
 {
     return(f.Clamp(range.Min, range.Max));
 }
Exemplo n.º 22
0
 public static bool IsBetween(this int i, MinMax range, bool exclusive)
 {
     return i.IsBetween((int)range.Min, (int)range.Max, exclusive);
 }
Exemplo n.º 23
0
 public static float Scale(this float f, MinMax currentRange, MinMax targetRange)
 {
     return(f.Scale(currentRange.Min, currentRange.Max, targetRange.Min, targetRange.Max));
 }
Exemplo n.º 24
0
 public static bool IsBetween(this float f, MinMax range)
 {
     return(f.IsBetween(range.Min, range.Max, false));
 }
Exemplo n.º 25
0
 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));
 }