コード例 #1
0
 public static void Barycentric(ref FPVector2 value1, ref FPVector2 value2, ref FPVector2 value3, FP amount1,
                                FP amount2, out FPVector2 result)
 {
     result = new FPVector2(
         FPMath.Barycentric(value1.x, value2.x, value3.x, amount1, amount2),
         FPMath.Barycentric(value1.y, value2.y, value3.y, amount1, amount2));
 }
コード例 #2
0
 public static FPVector2 Barycentric(FPVector2 value1, FPVector2 value2, FPVector2 value3, FP amount1, FP amount2)
 {
     return(new FPVector2(
                FPMath.Barycentric(value1.x, value2.x, value3.x, amount1, amount2),
                FPMath.Barycentric(value1.y, value2.y, value3.y, amount1, amount2)));
 }