Esempio n. 1
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)));
 }
Esempio n. 2
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));
 }
Esempio n. 3
0
 public static void Clamp(ref Vector2 value1, ref Vector2 min, ref Vector2 max, out Vector2 result)
 {
     result = new Vector2(
         MathHelper.Clamp(value1.X, min.X, max.X),
         MathHelper.Clamp(value1.Y, min.Y, max.Y));
 }
Esempio n. 4
0
 public static void Hermite(ref Vector2 value1, ref Vector2 tangent1, ref Vector2 value2, ref Vector2 tangent2, double amount, out Vector2 result)
 {
     result.X = MathHelper.Hermite(value1.X, tangent1.X, value2.X, tangent2.X, amount);
     result.Y = MathHelper.Hermite(value1.Y, tangent1.Y, value2.Y, tangent2.Y, amount);
 }
Esempio n. 5
0
 public static Vector2 Clamp(Vector2 value1, Vector2 min, Vector2 max)
 {
     return(new Vector2(
                MathHelper.Clamp(value1.X, min.X, max.X),
                MathHelper.Clamp(value1.Y, min.Y, max.Y)));
 }
Esempio n. 6
0
 public static void CatmullRom(ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, ref Vector2 value4, double amount, out Vector2 result)
 {
     result = new Vector2(
         MathHelper.CatmullRom(value1.X, value2.X, value3.X, value4.X, amount),
         MathHelper.CatmullRom(value1.Y, value2.Y, value3.Y, value4.Y, amount));
 }
Esempio n. 7
0
 public static Vector2 CatmullRom(Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, double amount)
 {
     return(new Vector2(
                MathHelper.CatmullRom(value1.X, value2.X, value3.X, value4.X, amount),
                MathHelper.CatmullRom(value1.Y, value2.Y, value3.Y, value4.Y, amount)));
 }
Esempio n. 8
0
 public static void Barycentric(ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, double amount1, double amount2, out Vector2 result)
 {
     result = new Vector2(
         MathHelper.Barycentric(value1.X, value2.X, value3.X, amount1, amount2),
         MathHelper.Barycentric(value1.Y, value2.Y, value3.Y, amount1, amount2));
 }
Esempio n. 9
0
 public static Vector2 Barycentric(Vector2 value1, Vector2 value2, Vector2 value3, double amount1, double amount2)
 {
     return(new Vector2(
                MathHelper.Barycentric(value1.X, value2.X, value3.X, amount1, amount2),
                MathHelper.Barycentric(value1.Y, value2.Y, value3.Y, amount1, amount2)));
 }