Clamp() private méthode

private Clamp ( float Value, float Min, float Max ) : float
Value float
Min float
Max float
Résultat float
Exemple #1
0
 public static float Vsat1(float Value)
 {
     if (float.IsNaN(Value))
     {
         return(Value);
     }
     return(MathFloat.Clamp(Value, -1.0f, 1.0f));
 }
Exemple #2
0
 public static float Vsat1(float Value)
 {
     return(MathFloat.Clamp(Value, -1.0f, 1.0f));
 }