Lines Matching defs:tension
47 * @param tension Amount of anticipation/overshoot. When tension equals 0.0f,
51 public AnticipateOvershootInterpolator(float tension) {
52 mTension = tension * 1.5f;
56 * @param tension Amount of anticipation/overshoot. When tension equals 0.0f,
59 * @param extraTension Amount by which to multiply the tension. For instance,
61 * a tension of 2.0f, you would use an extraTension of 1.5f.
63 public AnticipateOvershootInterpolator(float tension, float extraTension) {
64 mTension = tension * extraTension;
97 // f(t) = 0.5 * a(t * 2, tension * extraTension), when t < 0.5
98 // f(t) = 0.5 * (o(t * 2 - 2, tension * extraTension) + 2), when t <= 1.0