]> icculus.org git repositories - divverent/nexuiz.git/blob - data/oldmenuqc/control/_fx/interpol.qc
Add a branch to let me work on a new menu undisturbedly.
[divverent/nexuiz.git] / data / oldmenuqc / 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 };