Beispiel #1
0
 public static int ClampToZeroTo255(int value)
 {
     return(Clamper <int> .Clamp(value, 0, 255));
 }
Beispiel #2
0
 public static double Clamp(int value, int min, int max)
 {
     return(Clamper <int> .Clamp(value, min, max));
 }
Beispiel #3
0
 public static double ClampToZeroToOne(double value)
 {
     return(Clamper <double> .Clamp(value, 0, 255));
 }
Beispiel #4
0
 public static double Clamp(double value, double min, double max)
 {
     return(Clamper <double> .Clamp(value, min, max));
 }