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

◆ CatmullRom()

static float Microsoft.Xna.Framework.MathHelper.CatmullRom ( float value1,
float value2,
float value3,
float value4,
float amount )
inlinestatic

Definition at line 69 of file MathHelper.cs.

70 {
71 float num = amount * amount;
72 float num2 = amount * num;
73 return 0.5f * (2f * value2 + (0f - value1 + value3) * amount + (2f * value1 - 5f * value2 + 4f * value3 - value4) * num + (0f - value1 + 3f * value2 - 3f * value3 + value4) * num2);
74 }