SmoothStep() public static method

public static SmoothStep ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
return double
示例#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)));
 }
示例#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)));
 }