Interpolator
Base class used for blending between sample points. The base implementation simply provides latest data sampling so that values "snap" to the sample that is latest. By sub-classing and overriding these methods, more refined interpolation can be achieved (see LinearInterpolator and SplineInterpolator). Interpolation can be implemented either using 2 samples or 4 samples. Methods are specified for all supported types, taking sample values as parameters together with the time t that is expressed as a fraction between value1 and value2. Unless the 4 sample methods are overriden, they will simply call the corresponding 2 sample methods that will suffice for most types of interpolation.
Constructors
Interpolator |
Properties
NumberOfSamplesToStayBehind | Number of leading samples required for this interpolation method, added to InterpolationSettings.Delay. Linear interpolation requires one sample ahead (and one behind) to produce valid results while splines require two samples ahead and behind. The default Interpolator requires no samples ahead or behind because since it simply applies the most recent sample with no blending. |
Methods
Interpolate | Interpolates and returns a new value between the given values based on the given t. |
InterpolateBoolean | |
InterpolateByte | |
InterpolateBytes | |
InterpolateChar | |
InterpolateColor | |
InterpolateDouble | |
InterpolateEntityReference | |
InterpolateFloat | |
InterpolateInt | |
InterpolateLong | |
InterpolateQuaternion | |
InterpolateSByte | |
InterpolateShort | |
InterpolateString | |
InterpolateUInt | |
InterpolateULong | |
InterpolateUShort | |
InterpolateVector2 | |
InterpolateVector3 |