Skip to content

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.

Pick one in TweenEquations; extend this class for a curve of your own.

ReturnsSignatureSummary
TweenEquation() protectedCreates a curve, for a subclass.

ReturnsSignatureSummary
booleanisValueOf(String name)If true, name is the name of this curve, as toString() gives it ("Quad.OUT").
ReturnsSignatureSummary
floatcompute(float t) hook abstractReturns 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.

TweenEquation() protected

Creates a curve, for a subclass.

boolean isValueOf(String name)

If true, name is the name of this curve, as toString() gives it ("Quad.OUT").

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

Report a problem with this page