|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Default target LerpFunc, approaching ShapeData's target position inclusive angular rotation around given normalized axis.
More...
Public Member Functions | |
| TargetLerp (final Vec3f rotAxis) | |
New target LerpFunc instance. More... | |
| boolean | eval (final long frame_cnt, final Set as, final int idx, final ShapeData sd, final float at_s, final float dt_s) |
Evaluate next LERP step for the given ShapeData within the animation Set. More... | |
| 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... | |
Default target LerpFunc, approaching ShapeData's target position inclusive angular rotation around given normalized axis.
Implementation uses the current shape position and time delta since last call, hence allows rugged utilization even if shapes are dragged around.
Definition at line 619 of file AnimGroup.java.
| com.jogamp.graph.ui.AnimGroup.TargetLerp.TargetLerp | ( | final Vec3f | rotAxis | ) |
New target LerpFunc instance.
| rotAxis | normalized axis vector for Quaternion#rotateByAngleNormalAxis(float, Vec3f) |
Definition at line 625 of file AnimGroup.java.
| boolean com.jogamp.graph.ui.AnimGroup.TargetLerp.eval | ( | final long | frame_cnt, |
| final Set | as, | ||
| final int | idx, | ||
| final ShapeData | sd, | ||
| final float | at_s, | ||
| final float | dt_s | ||
| ) |
Evaluate next LERP step for the given ShapeData within the animation Set.
| frame_cnt | frame count for the given ShapeData |
| as | Set of the animation |
| idx | ShapeData index within the Set#allShapes |
| sd | the ShapeData matching idx containing the Shape to apply this operation |
| at_s | time delta to animation start, i.e. animation duration [s] |
| dt_s | time delta to last call [s] |
Implements com.jogamp.graph.ui.AnimGroup.LerpFunc.
Definition at line 629 of file AnimGroup.java.