public class AnimationUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static float |
clampWrapTime(float time,
float duration,
LoopMode loopMode)
Clamps the time according to duration and loopMode
|
public static float clampWrapTime(float time, float duration, LoopMode loopMode)
time
- the unclamped time value (in seconds)duration
- the animation's duration (in seconds)loopMode
- the animation's looping behavior (not null)