T
- - the Java class representing the object.public interface IValueInterpolator<T>
Modifier and Type | Method and Description |
---|---|
void |
copy(T t)
Initializes this object with the provided object.
|
boolean |
getInterpolated()
Indicates whether this object represents an actual (measured)
value/timestamp, or an interpolated value/timestamp.
|
void |
interpolate(T to,
double time_ratio,
T out)
Returns a new object of type T which whose value and timestamp are
interpolated between this "from" object and the provided "to" object at a
point between them expressed by a time ratio.
|
void |
setInterpolated(boolean interpolated)
Marks this object as being either actual (measured) value/timestamp, or
interpolated.
|
void interpolate(T to, double time_ratio, T out)
to
- - the "to" object (also of type T) representing an object
which is "later" in time than this object.time_ratio
- - the ratio (from 0 to 1) in time between this object and the
"to" object at which point the interpolated value should
occur.boolean getInterpolated()
void setInterpolated(boolean interpolated)
interpolated
- - true if the object is interpolated, false if it is actual
(measured).void copy(T t)
t
- - the object to intializes this object with.