public class NumberTangentInterpolator extends Interpolator
| Modifier and Type | Field and Description |
|---|---|
private long |
inTicks |
private double |
inValue |
private long |
outTicks |
private double |
outValue |
| Constructor and Description |
|---|
NumberTangentInterpolator(Duration duration,
double value) |
NumberTangentInterpolator(Duration inDuration,
double inValue,
Duration outDuration,
double outValue) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
curve(double t)
Mapping from [0.0..1.0] to itself.
|
boolean |
equals(java.lang.Object obj) |
double |
getInTicks() |
double |
getInValue() |
double |
getOutTicks() |
double |
getOutValue() |
int |
hashCode() |
java.lang.String |
toString() |
interpolate, interpolate, interpolate, interpolate, interpolate, SPLINE, TANGENT, TANGENTprivate final double inValue
private final double outValue
private final long inTicks
private final long outTicks
public NumberTangentInterpolator(Duration inDuration, double inValue, Duration outDuration, double outValue)
public NumberTangentInterpolator(Duration duration, double value)
public double getInValue()
public double getOutValue()
public double getInTicks()
public double getOutTicks()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected double curve(double t)
Interpolatorcurve in class Interpolatort - time, but normalized to the range [0.0..1.0], where 0.0 is the
start of the current interval, while 1.0 is the end of the
current interval. Usually a function that increases
monotonically.