diff options
Diffstat (limited to 'src/com/android/launcher3')
-rw-r--r-- | src/com/android/launcher3/anim/Interpolators.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/com/android/launcher3/anim/Interpolators.java b/src/com/android/launcher3/anim/Interpolators.java index efb08a11a..a4cba4f62 100644 --- a/src/com/android/launcher3/anim/Interpolators.java +++ b/src/com/android/launcher3/anim/Interpolators.java @@ -112,29 +112,6 @@ public class Interpolators { } }; - /** - * Interpolates using a particular section of the damped oscillation function. - * The section is selected by scaling and shifting the function. - */ - public static final Interpolator OSCILLATE = new Interpolator() { - - // Used to scale the oscillations horizontally - private final float horizontalScale = 1f; - // Used to shift the oscillations horizontally - private final float horizontalShift = 05f; - // Used to scale the oscillations vertically - private final float verticalScale = 1f; - // Used to shift the oscillations vertically - private final float verticalShift = 1f; - - @Override - public float getInterpolation(float t) { - t = horizontalScale * (t + horizontalShift); - return (float) ((verticalScale * (Math.exp(-t) * Math.cos(2 * Math.PI * t))) - + verticalShift); - } - }; - private static final float FAST_FLING_PX_MS = 10; public static Interpolator scrollInterpolatorForVelocity(float velocity) { |