SmoothStep() public static méthode

public static SmoothStep ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
Résultat double
Exemple #1
0
 public static Vector4 SmoothStep(Vector4 value1, Vector4 value2, float amount)
 {
     return(new Vector4(
                Utils.SmoothStep(value1.X, value2.X, amount),
                Utils.SmoothStep(value1.Y, value2.Y, amount),
                Utils.SmoothStep(value1.Z, value2.Z, amount),
                Utils.SmoothStep(value1.W, value2.W, amount)));
 }
Exemple #2
0
 /// <summary>
 /// Interpolates between two vectors using a cubic equation
 /// </summary>
 public static Vector2 SmoothStep(Vector2 value1, Vector2 value2, float amount)
 {
     return(new Vector2(
                Utils.SmoothStep(value1.X, value2.X, amount),
                Utils.SmoothStep(value1.Y, value2.Y, amount)));
 }