JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.ui.AnimGroup.LerpFunc Interface Reference

Linear interpolation (LERP) function to evaluate the next animated frame for each ShapeData of a Set. More...

Inheritance diagram for com.jogamp.graph.ui.AnimGroup.LerpFunc:
Collaboration diagram for com.jogamp.graph.ui.AnimGroup.LerpFunc:

Public Member Functions

boolean eval (long frame_cnt, Set as, final int idx, ShapeData sd, float at_s, float dt_s)
 Evaluate next LERP step for the given ShapeData within the animation Set. More...
 

Detailed Description

Linear interpolation (LERP) function to evaluate the next animated frame for each ShapeData of a Set.

See also
AnimGroup.TargetLerp

Definition at line 290 of file AnimGroup.java.

Member Function Documentation

◆ eval()

boolean com.jogamp.graph.ui.AnimGroup.LerpFunc.eval ( long  frame_cnt,
Set  as,
final int  idx,
ShapeData  sd,
float  at_s,
float  dt_s 
)

Evaluate next LERP step for the given ShapeData within the animation Set.

Parameters
frame_cntframe count for the given ShapeData
asSet of the animation
idxShapeData index within the Set#allShapes
sdthe ShapeData matching idx containing the Shape to apply this operation
at_stime delta to animation start, i.e. animation duration [s]
dt_stime delta to last call [s]
Returns
true if target animation shall continue, false otherwise

Implemented in com.jogamp.graph.ui.AnimGroup.TargetLerp, com.jogamp.graph.ui.AnimGroup.ScrollLerp, and com.jogamp.graph.ui.AnimGroup.SineLerp.


The documentation for this interface was generated from the following file: