Example #1
0
 public static void SmoothStep(ref Vector2 value1, ref Vector2 value2, double amount, out Vector2 result)
 {
     result = new Vector2(
         MathHelper.SmoothStep(value1.X, value2.X, amount),
         MathHelper.SmoothStep(value1.Y, value2.Y, amount));
 }
Example #2
0
 public static Vector2 SmoothStep(Vector2 value1, Vector2 value2, double amount)
 {
     return(new Vector2(
                MathHelper.SmoothStep(value1.X, value2.X, amount),
                MathHelper.SmoothStep(value1.Y, value2.Y, amount)));
 }