Package com.jogamp.graph.ui
Interface AnimGroup.LerpFunc
-
- All Known Implementing Classes:
AnimGroup.ScrollLerp
,AnimGroup.SineLerp
,AnimGroup.TargetLerp
- Enclosing class:
- AnimGroup
public static interface AnimGroup.LerpFunc
Linear interpolation (LERP) function to evaluate the next animated frame for eachAnimGroup.ShapeData
of aAnimGroup.Set
.- See Also:
AnimGroup.TargetLerp
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
eval(long frame_cnt, AnimGroup.Set as, int idx, AnimGroup.ShapeData sd, float at_s, float dt_s)
Evaluate next LERP step for the givenAnimGroup.ShapeData
within the animationAnimGroup.Set
.
-
-
-
Method Detail
-
eval
boolean eval(long frame_cnt, AnimGroup.Set as, int idx, AnimGroup.ShapeData sd, float at_s, float dt_s)
Evaluate next LERP step for the givenAnimGroup.ShapeData
within the animationAnimGroup.Set
.- Parameters:
frame_cnt
- frame count for the givenAnimGroup.ShapeData
as
-AnimGroup.Set
of the animationidx
-AnimGroup.ShapeData
index within theAnimGroup.Set.allShapes
sd
- theAnimGroup.ShapeData
matchingidx
containing theShape
to apply this operationat_s
- time delta to animation start, i.e. animation duration [s]dt_s
- time delta to last call [s]- Returns:
- true if target animation shall continue, false otherwise
-
-