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, TANGENT
private 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected double curve(double t)
Interpolator
curve
in class Interpolator
t
- 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.