Lines Matching refs:t
44 float AnticipateInterpolator::interpolate(float t) { in interpolate() argument
45 return t * t * ((mTension + 1) * t - mTension); in interpolate()
48 static float a(float t, float s) { in a() argument
49 return t * t * ((s + 1) * t - s); in a()
52 static float o(float t, float s) { in o() argument
53 return t * t * ((s + 1) * t + s); in o()
56 float AnticipateOvershootInterpolator::interpolate(float t) { in interpolate() argument
57 if (t < 0.5f) in interpolate()
58 return 0.5f * a(t * 2.0f, mTension); in interpolate()
60 return 0.5f * (o(t * 2.0f - 2.0f, mTension) + 2.0f); in interpolate()
63 static float bounce(float t) { in bounce() argument
64 return t * t * 8.0f; in bounce()
67 float BounceInterpolator::interpolate(float t) { in interpolate() argument
68 t *= 1.1226f; in interpolate()
69 if (t < 0.3535f) in interpolate()
70 return bounce(t); in interpolate()
71 else if (t < 0.7408f) in interpolate()
72 return bounce(t - 0.54719f) + 0.7f; in interpolate()
73 else if (t < 0.9644f) in interpolate()
74 return bounce(t - 0.8526f) + 0.9f; in interpolate()
76 return bounce(t - 1.0435f) + 0.95f; in interpolate()
93 float OvershootInterpolator::interpolate(float t) { in interpolate() argument
94 t -= 1.0f; in interpolate()
95 return t * t * ((mTension + 1) * t + mTension) + 1.0f; in interpolate()
98 float PathInterpolator::interpolate(float t) { in interpolate() argument
99 if (t <= 0) { in interpolate()
101 } else if (t >= 1) { in interpolate()
110 if (t < mX[midIndex]) { in interpolate()
122 float tInRange = t - mX[startIndex]; in interpolate()