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

◆ Barycentric() [2/2]

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

Definition at line 323 of file Vector3.cs.

324 {
325 Vector3 result = default(Vector3);
326 result.X = value1.X + amount1 * (value2.X - value1.X) + amount2 * (value3.X - value1.X);
327 result.Y = value1.Y + amount1 * (value2.Y - value1.Y) + amount2 * (value3.Y - value1.Y);
328 result.Z = value1.Z + amount1 * (value2.Z - value1.Z) + amount2 * (value3.Z - value1.Z);
329 return result;
330 }
Vector3(float x, float y, float z)
Definition Vector3.cs:66

References Microsoft.Xna.Framework.Vector3.X, Microsoft.Xna.Framework.Vector3.Y, and Microsoft.Xna.Framework.Vector3.Z.