Class SpringInterpolator
- java.lang.Object
-
- at.wirecube.additiveanimations.helper.SpringInterpolator
-
- All Implemented Interfaces:
TimeInterpolator,Interpolator
public class SpringInterpolator extends Object implements Interpolator
-
-
Constructor Summary
Constructors Constructor Description SpringInterpolator()SpringInterpolator(double amplitude, double frequency)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpringInterpolatorbouncySpring()floatgetInterpolation(float time)static SpringInterpolatorsoftSpring()
-
-
-
Method Detail
-
bouncySpring
public static SpringInterpolator bouncySpring()
-
softSpring
public static SpringInterpolator softSpring()
-
getInterpolation
public float getInterpolation(float time)
- Specified by:
getInterpolationin interfaceTimeInterpolator
-
-