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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| BackTweenEquation(float overshoot) protected | Creates a curve with the swing overshoot, for a subclass. |
Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| overshoot | float | 1.70158F in IN, OUT and IN_OUT | How far the curve swings past its ends: 0F gives no swing, larger values swing further. |
Methods
Section titled “Methods”Inherited from TweenEquation (1)
Constants and fields
Section titled “Constants and fields”| Type | Name | Value | Summary |
|---|---|---|---|
BackTweenEquation | IN | BackTweenEquation.in(1.70158F) | Moves back a little before it starts. |
BackTweenEquation | OUT | BackTweenEquation.out(1.70158F) | Goes past the end a little before it settles. |
BackTweenEquation | IN_OUT | BackTweenEquation.inOut(1.70158F) | Moves back a little at the start and goes past the end a little. |
float | overshoot | How far the curve swings past its ends: 0F gives no swing, larger values swing further. |
Creation details
Section titled “Creation details”BackTweenEquation
Section titled “BackTweenEquation”BackTweenEquation(float overshoot) protected
Creates a curve with the swing overshoot, for a subclass.
Property details
Section titled “Property details”overshoot
Section titled “overshoot”this overshoot(float overshoot)fluent hook abstractfloat 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.
Constant and field details
Section titled “Constant and field details”BackTweenEquation IN
Moves back a little before it starts.
BackTweenEquation OUT
Goes past the end a little before it settles.
IN_OUT
Section titled “IN_OUT”BackTweenEquation IN_OUT
Moves back a little at the start and goes past the end a little.
overshoot
Section titled “overshoot”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
