Package ej.motion.bounce
Class BounceEaseOutFunction
- java.lang.Object
-
- ej.motion.bounce.BounceEaseOutFunction
-
- All Implemented Interfaces:
Function
public class BounceEaseOutFunction extends java.lang.Object implements Function
Represents a bounce motion: starts at a steady speed, then slows down to the stop instruction then go backward with the same effect with less initial speed then go forward and so on until it stops.
-
-
Field Summary
Fields Modifier and Type Field Description static BounceEaseOutFunction
INSTANCE
Singleton to avoid creating several instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
computeValue(float t)
Returns the value of the function for the given time factor.
-
-
-
Field Detail
-
INSTANCE
public static final BounceEaseOutFunction INSTANCE
Singleton to avoid creating several instances.
-
-
Method Detail
-
computeValue
public float computeValue(float t)
Description copied from interface:Function
Returns the value of the function for the given time factor.- Specified by:
computeValue
in interfaceFunction
- Parameters:
t
- the time factor, between 0 and 1.- Returns:
- the value of the function for the given time, between 0 and 1.
-
-