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) return 0.5f * a(t * 2.0f, mTension); in interpolate()
58 else return 0.5f * (o(t * 2.0f - 2.0f, mTension) + 2.0f); in interpolate()
61 static float bounce(float t) { in bounce() argument
62 return t * t * 8.0f; in bounce()
65 float BounceInterpolator::interpolate(float t) { in interpolate() argument
66 t *= 1.1226f; in interpolate()
67 if (t < 0.3535f) return bounce(t); in interpolate()
68 else if (t < 0.7408f) return bounce(t - 0.54719f) + 0.7f; in interpolate()
69 else if (t < 0.9644f) return bounce(t - 0.8526f) + 0.9f; in interpolate()
70 else return bounce(t - 1.0435f) + 0.95f; in interpolate()
87 float OvershootInterpolator::interpolate(float t) { in interpolate() argument
88 t -= 1.0f; in interpolate()
89 return t * t * ((mTension + 1) * t + mTension) + 1.0f; in interpolate()
92 float PathInterpolator::interpolate(float t) { in interpolate() argument
93 if (t <= 0) { in interpolate()
95 } else if (t >= 1) { in interpolate()
104 if (t < mX[midIndex]) { in interpolate()
116 float tInRange = t - mX[startIndex]; in interpolate()