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

◆ SmoothStep()

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

Definition at line 63 of file MathHelper.cs.

64 {
65 float num = Clamp(amount, 0f, 1f);
66 return Lerp(value1, value2, num * num * (3f - 2f * num));
67 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53
static float Clamp(float value, float min, float max)
Definition MathHelper.cs:46

References Microsoft.Xna.Framework.MathHelper.Clamp(), and Microsoft.Xna.Framework.MathHelper.Lerp().

Referenced by Terraria.Main.DoDraw_UpdateCameraPosition(), Terraria.Projectile.GetFairyQueenWeaponsColor(), Terraria.Projectile.GetLastPrismHue(), Terraria.Projectile.Kill(), and Terraria.GameContent.UI.GameTipsDisplay.GameTip.Update().