TweenEquation
abstract class TweenEquation
Known subtypes: BackTweenEquation, BounceTweenEquation, CircTweenEquation, CubicTweenEquation, ElasticTweenEquation, ExpoTweenEquation, LinearTweenEquation, QuadTweenEquation, QuartTweenEquation, QuintTweenEquation, SineTweenEquation
Package: dev.joid.lib.animation.tween · Module: core · Source: TweenEquation.java
Easing curve that turns the elapsed part of a step into its progress.
Description
Section titled “Description”Pick one in TweenEquations; extend this class for a curve of your own.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| TweenEquation() protected | Creates a curve, for a subclass. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | isValueOf(String name) | If true, name is the name of this curve, as toString() gives it ("Quad.OUT"). |
For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
float | compute(float t) hook abstract | Returns the progress for t, the elapsed part of the step from 0F to 1F; it gives 0F at the start and 1F at the end, and may go past them on the way. |
Creation details
Section titled “Creation details”TweenEquation
Section titled “TweenEquation”TweenEquation() protected
Creates a curve, for a subclass.
Method details
Section titled “Method details”isValueOf
Section titled “isValueOf”boolean isValueOf(String name)
If true, name is the name of this curve, as toString() gives it ("Quad.OUT").
compute
Section titled “compute”float compute(float t) hook abstract
Returns the progress for t, the elapsed part of the step from 0F to 1F; it gives 0F at the start and 1F at the end, and may go past them on the way.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
