Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
SmoothStep()
[1/2]
static void Microsoft.Xna.Framework.Vector2.SmoothStep
(
ref
Vector2
value1
,
ref
Vector2
value2
,
float
amount
,
out
Vector2
result
)
inline
static
Definition at line
265
of file
Vector2.cs
.
266
{
267
amount = ((amount > 1f) ? 1f : ((amount < 0f) ? 0f : amount));
268
amount = amount * amount * (3f - 2f * amount);
269
result.X = value1.X + (value2.X - value1.X) * amount;
270
result.Y = value1.Y + (value2.Y - value1.Y) * amount;
271
}
Microsoft
Xna
Framework
Vector2
Generated by
1.10.0