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

◆ SmoothStep() [1/2]

static void Microsoft.Xna.Framework.Vector3.SmoothStep ( ref Vector3 value1,
ref Vector3 value2,
float amount,
out Vector3 result )
inlinestatic

Definition at line 350 of file Vector3.cs.

351 {
352 amount = ((amount > 1f) ? 1f : ((amount < 0f) ? 0f : amount));
353 amount = amount * amount * (3f - 2f * amount);
354 result.X = value1.X + (value2.X - value1.X) * amount;
355 result.Y = value1.Y + (value2.Y - value1.Y) * amount;
356 result.Z = value1.Z + (value2.Z - value1.Z) * amount;
357 }