Skip to content

BackTweenEquation

abstract class BackTweenEquation
Extends: TweenEquation
Package: dev.joid.lib.animation.tween.equation · Module: core · Source: BackTweenEquation.java

Easing curves that move back a little before they start or go past the end before they settle.

Each constant is also in TweenEquations, as BACK_IN, BACK_OUT and BACK_IN_OUT. overshoot(...) gives the same curve with a larger or smaller swing, whose toString() carries it: "Back.OUT(2.5)", which TweenEquations.of reads back.

ReturnsSignatureSummary
BackTweenEquation(float overshoot) protectedCreates a curve with the swing overshoot, for a subclass.

PropertyTypeDefaultSummary
overshootfloat1.70158F in IN, OUT and IN_OUTHow far the curve swings past its ends: 0F gives no swing, larger values swing further.

Inherited from TweenEquation (1)

isValueOf

TypeNameValueSummary
BackTweenEquationINBackTweenEquation.in(1.70158F)Moves back a little before it starts.
BackTweenEquationOUTBackTweenEquation.out(1.70158F)Goes past the end a little before it settles.
BackTweenEquationIN_OUTBackTweenEquation.inOut(1.70158F)Moves back a little at the start and goes past the end a little.
floatovershootHow far the curve swings past its ends: 0F gives no swing, larger values swing further.

BackTweenEquation(float overshoot) protected

Creates a curve with the swing overshoot, for a subclass.

  • this overshoot(float overshoot) fluent hook abstract
  • float getOvershoot()

Default: 1.70158F in IN, OUT and IN_OUT

How far the curve swings past its ends: 0F gives no swing, larger values swing further. overshoot(float) returns a curve of the same direction with that swing and leaves this one unchanged.

BackTweenEquation IN

Moves back a little before it starts.

BackTweenEquation OUT

Goes past the end a little before it settles.

BackTweenEquation IN_OUT

Moves back a little at the start and goes past the end a little.

float overshoot protected

How far the curve swings past its ends: 0F gives no swing, larger values swing further. overshoot(float) returns a curve of the same direction with that swing and leaves this one unchanged.


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