ITweenPath
interface ITweenPath
Known subtypes: CatmullRomTweenPath, LinearTweenPath
Package: dev.joid.lib.animation.tween · Module: core · Source: ITweenPath.java
Curve that joins the start, the waypoints and the target of a tween.
Description
Section titled “Description”TweenPaths holds the curves of JOID; implement this interface for a path of your own.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
float | compute(float t, float[] points, int pointCount) abstract | Returns the value at t, the progress from 0F to 1F, on the path through the first pointCount values of points (start, waypoints, target). |
Method details
Section titled “Method details”compute
Section titled “compute”float compute(float t, float[] points, int pointCount) abstract
Returns the value at t, the progress from 0F to 1F, on the path through the first pointCount values of points (start, waypoints, target).
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
