]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/control/_fx/interpol.qc
Adding my current version of the scmenu to the nexuiz cvs.
[divverent/nexuiz.git] / scmenu / source / control / _fx / interpol.qc
1 // DP/Nex Menu
2 // control/fx/interpol.qc
3
4 float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) FX_LinearInterpolation =
5 {
6         return pValue + ((pEnd - pStart) * Timer_Delta / pDeltaTime);
7 };
8
9 float( float pStart, float pEnd, float pDeltaTime, float pT, float pValue ) FX_SquareInterpolation =
10 {
11         return pEnd - (pEnd - pStart) * (pDeltaTime - pT) * (pDeltaTime - pT) / pDeltaTime / pDeltaTime;
12 };