Package ej.motion.circ
Class CircEaseInOutFunction
- java.lang.Object
-
- ej.motion.circ.CircEaseInOutFunction
-
-
Field Summary
Fields Modifier and Type Field Description static CircEaseInOutFunctionINSTANCESingleton to avoid creating several instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatcomputeValue(float t)Returns the value of the function for the given time factor.
-
-
-
Field Detail
-
INSTANCE
public static final CircEaseInOutFunction INSTANCE
Singleton to avoid creating several instances.
-
-
Method Detail
-
computeValue
public float computeValue(float t)
Description copied from interface:FunctionReturns the value of the function for the given time factor.- Specified by:
computeValuein interfaceFunction- Parameters:
t- the time factor, between 0 and 1.- Returns:
- the value of the function for the given time, between 0 and 1.
-
-