CatmullRom() public static method

public static CatmullRom ( float value1, float value2, float value3, float value4, float amount ) : float
value1 float
value2 float
value3 float
value4 float
amount float
return float
Esempio n. 1
0
 public static void CatmullRom(ref Vector3 value1, ref Vector3 value2, ref Vector3 value3, ref Vector3 value4, FP amount, out Vector3 result)
 {
     result = new Vector3(MathHelper.CatmullRom(value1.X, value2.X, value3.X, value4.X, amount), MathHelper.CatmullRom(value1.Y, value2.Y, value3.Y, value4.Y, amount), MathHelper.CatmullRom(value1.Z, value2.Z, value3.Z, value4.Z, amount));
 }
Esempio n. 2
0
 public static Vector2 CatmullRom(Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, float 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. 3
0
 public static Vector3 CatmullRom(Vector3 value1, Vector3 value2, Vector3 value3, Vector3 value4, FP amount)
 {
     return(new Vector3(MathHelper.CatmullRom(value1.X, value2.X, value3.X, value4.X, amount), MathHelper.CatmullRom(value1.Y, value2.Y, value3.Y, value4.Y, amount), MathHelper.CatmullRom(value1.Z, value2.Z, value3.Z, value4.Z, amount)));
 }
Esempio n. 4
0
 public static void CatmullRom(ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, ref Vector2 value4, float 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. 5
0
 public static void CatmullRom(ref Vector3 value1, ref Vector3 value2, ref Vector3 value3, ref Vector3 value4, float amount, out Vector3 result)
 {
     result.X = MathHelper.CatmullRom(value1.X, value2.X, value3.X, value4.X, amount);
     result.Y = MathHelper.CatmullRom(value1.Y, value2.Y, value3.Y, value4.Y, amount);
     result.Z = MathHelper.CatmullRom(value1.Z, value2.Z, value3.Z, value4.Z, amount);
 }
Esempio n. 6
0
 public static Vector4 CatmullRom(Vector4 value1, Vector4 value2, Vector4 value3, Vector4 value4, float amount)
 {
     return(new Vector4(MathHelper.CatmullRom(value1.X, value2.X, value3.X, value4.X, amount), MathHelper.CatmullRom(value1.Y, value2.Y, value3.Y, value4.Y, amount), MathHelper.CatmullRom(value1.Z, value2.Z, value3.Z, value4.Z, amount), MathHelper.CatmullRom(value1.W, value2.W, value3.W, value4.W, amount)));
 }
Esempio n. 7
0
 public static Vector2 CatmullRom(Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, float 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)));
 }