public class AnimationUtils
extends Object
-
Method Summary 
static float
Clamps the time according to duration and loopMode
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details 
-
clampWrapTime 
public static float clampWrapTime(float time,
float duration,
LoopMode loopMode)
Clamps the time according to duration and loopMode
- Parameters:
time
- the unclamped time value (in seconds)
duration
- the animation's duration (in seconds)
loopMode
- the animation's looping behavior (not null)
- Returns:
- the clamped time (in seconds)