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

◆ Barycentric() [1/2]

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

Definition at line 332 of file Vector3.cs.

333 {
334 result.X = value1.X + amount1 * (value2.X - value1.X) + amount2 * (value3.X - value1.X);
335 result.Y = value1.Y + amount1 * (value2.Y - value1.Y) + amount2 * (value3.Y - value1.Y);
336 result.Z = value1.Z + amount1 * (value2.Z - value1.Z) + amount2 * (value3.Z - value1.Z);
337 }