Beispiel #1
0
 public static void CatmullRom(ref Vector value1, ref Vector value2, ref Vector value3, ref Vector value4,
                               Number amount, ref Vector result)
 {
     result = new Vector(
         Math.CatmullRom(value1.x, value2.x, value3.x, value4.x, amount),
         Math.CatmullRom(value1.y, value2.y, value3.y, value4.y, amount));
 }
Beispiel #2
0
 public static Vector CatmullRom(Vector value1, Vector value2, Vector value3, Vector value4, Number amount)
 {
     return(new Vector(
                Math.CatmullRom(value1.x, value2.x, value3.x, value4.x, amount),
                Math.CatmullRom(value1.y, value2.y, value3.y, value4.y, amount)));
 }