public static void Barycentric(ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, double amount1, double amount2, out Vector4 result) { #if (USE_FARSEER) result = new Vector4( SilverSpriteMathHelper.Barycentric(value1.X, value2.X, value3.X, amount1, amount2), SilverSpriteMathHelper.Barycentric(value1.Y, value2.Y, value3.Y, amount1, amount2), SilverSpriteMathHelper.Barycentric(value1.Z, value2.Z, value3.Z, amount1, amount2), SilverSpriteMathHelper.Barycentric(value1.W, value2.W, value3.W, amount1, amount2)); #else result = new Vector4( MathHelper.Barycentric(value1.X, value2.X, value3.X, amount1, amount2), MathHelper.Barycentric(value1.Y, value2.Y, value3.Y, amount1, amount2), MathHelper.Barycentric(value1.Z, value2.Z, value3.Z, amount1, amount2), MathHelper.Barycentric(value1.W, value2.W, value3.W, amount1, amount2)); #endif }
public static Vector4 Barycentric(Vector4 value1, Vector4 value2, Vector4 value3, double amount1, double amount2) { #if (USE_FARSEER) return(new Vector4( SilverSpriteMathHelper.Barycentric(value1.X, value2.X, value3.X, amount1, amount2), SilverSpriteMathHelper.Barycentric(value1.Y, value2.Y, value3.Y, amount1, amount2), SilverSpriteMathHelper.Barycentric(value1.Z, value2.Z, value3.Z, amount1, amount2), SilverSpriteMathHelper.Barycentric(value1.W, value2.W, value3.W, amount1, amount2))); #else return(new Vector4( MathHelper.Barycentric(value1.X, value2.X, value3.X, amount1, amount2), MathHelper.Barycentric(value1.Y, value2.Y, value3.Y, amount1, amount2), MathHelper.Barycentric(value1.Z, value2.Z, value3.Z, amount1, amount2), MathHelper.Barycentric(value1.W, value2.W, value3.W, amount1, amount2))); #endif }
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)); }
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))); }