public class NumberTangentInterpolator extends Interpolator
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(Object obj) |
double |
getInTicks() |
double |
getInValue() |
double |
getOutTicks() |
double |
getOutValue() |
int |
hashCode() |
String |
toString() |
interpolate, interpolate, interpolate, interpolate, interpolate, SPLINE, TANGENT, TANGENT
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()
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.Copyright © 2020. All rights reserved.