Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Barycentric() [1/2]

static void Microsoft.Xna.Framework.Vector4.Barycentric ( ref Vector4 value1,
ref Vector4 value2,
ref Vector4 value3,
float amount1,
float amount2,
out Vector4 result )
inlinestatic

Definition at line 305 of file Vector4.cs.

306 {
307 result.X = value1.X + amount1 * (value2.X - value1.X) + amount2 * (value3.X - value1.X);
308 result.Y = value1.Y + amount1 * (value2.Y - value1.Y) + amount2 * (value3.Y - value1.Y);
309 result.Z = value1.Z + amount1 * (value2.Z - value1.Z) + amount2 * (value3.Z - value1.Z);
310 result.W = value1.W + amount1 * (value2.W - value1.W) + amount2 * (value3.W - value1.W);
311 }