File
Doc
Category
Size
Date
Package
AccelerateDecelerateInterpolator.java
API Doc
Android 1.5 API
1192
Wed May 06 22:41:56 BST 2009
android.view.animation
AccelerateDecelerateInterpolator
java.lang.Object
public class AccelerateDecelerateInterpolator extends Object implements Interpolator
An interpolator where the rate of change starts and ends slowly but accelerates through the middle.
Fields Summary
Constructors Summary
public AccelerateDecelerateInterpolator
()
public AccelerateDecelerateInterpolator
(
android.content.Context
context,
android.util.AttributeSet
attrs)
Methods Summary
public
float
getInterpolation
(
float
input)
return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;
Java Code Source