LinearTweenPath
class LinearTweenPath
Implements: ITweenPath
Package: dev.joid.lib.animation.tween.path · Module: core · Source: LinearTweenPath.java
Path made of straight segments between the waypoints of a tween.
Description
Section titled “Description”Use the instance TweenPaths.LINEAR.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| LinearTweenPath() | Creates the path. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
float | compute(float t, float[] points, int pointCount) | Returns the value at t on the straight segment between the two points that surround it, each segment taking the same share of the progress. |
Creation details
Section titled “Creation details”LinearTweenPath
Section titled “LinearTweenPath”LinearTweenPath()
Creates the path.
Method details
Section titled “Method details”compute
Section titled “compute”float compute(float t, float[] points, int pointCount)
Returns the value at t on the straight segment between the two points that surround it, each segment taking the same share of the progress.
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
