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

◆ Barycentric() [2/2]

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

Definition at line 295 of file Vector4.cs.

296 {
297 Vector4 result = default(Vector4);
298 result.X = value1.X + amount1 * (value2.X - value1.X) + amount2 * (value3.X - value1.X);
299 result.Y = value1.Y + amount1 * (value2.Y - value1.Y) + amount2 * (value3.Y - value1.Y);
300 result.Z = value1.Z + amount1 * (value2.Z - value1.Z) + amount2 * (value3.Z - value1.Z);
301 result.W = value1.W + amount1 * (value2.W - value1.W) + amount2 * (value3.W - value1.W);
302 return result;
303 }
Vector4(float x, float y, float z, float w)
Definition Vector4.cs:49

References Microsoft.Xna.Framework.Vector4.W, Microsoft.Xna.Framework.Vector4.X, Microsoft.Xna.Framework.Vector4.Y, and Microsoft.Xna.Framework.Vector4.Z.