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

◆ SmoothStep() [2/2]

static Vector3 Microsoft.Xna.Framework.Vector3.SmoothStep ( Vector3 value1,
Vector3 value2,
float amount )
inlinestatic

Definition at line 339 of file Vector3.cs.

340 {
341 amount = ((amount > 1f) ? 1f : ((amount < 0f) ? 0f : amount));
342 amount = amount * amount * (3f - 2f * amount);
343 Vector3 result = default(Vector3);
344 result.X = value1.X + (value2.X - value1.X) * amount;
345 result.Y = value1.Y + (value2.Y - value1.Y) * amount;
346 result.Z = value1.Z + (value2.Z - value1.Z) * amount;
347 return result;
348 }
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.