Interface IInterpolatable<T>
An object that can be interpolated
public interface IInterpolatable<T> where T : new()
Type Parameters
T
The type of the object
Properties
InterpolationIndex
The index that will be used for interpolation
double InterpolationIndex { get; }
Property Value
Methods
LinearInterpolate(T, double)
Interpolate base on this point and the other point with the given index
T LinearInterpolate(T other, double index)
Parameters
other
TThe other point
index
doubleThe interpolation index
Returns
- T
The interpolated point