private SegmentedLinearIntent(TypeOfValue startValue, TypeOfValue endValue, TimeSpan timeSpan) { StartValue = startValue; EndValue = endValue; TimeSpan = timeSpan; _intentState = new IntentState <TypeOfValue>(this, TimeSpan.Zero); }
public NonSegmentedLinearIntent(TypeOfValue startValue, TypeOfValue endValue, TimeSpan timeSpan, Interpolator <TypeOfValue> interpolator = null) { _interpolator = interpolator ?? Interpolator.Interpolator.Create <TypeOfValue>(); StartValue = startValue; EndValue = endValue; TimeSpan = timeSpan; _intentState = new IntentState <TypeOfValue>(this, TimeSpan.Zero); }
public StaticArrayIntent(TimeSpan frameTime, T[] vals, TimeSpan timeSpan) { if (vals.Length == 0) { throw new ArgumentOutOfRangeException("vals"); } _timespan = timeSpan; _vals = vals; _frameTime = frameTime; _intentState = new IntentState <T>(this, TimeSpan.Zero); }
public IIntentState Clone() { IntentState <ResultType> newIntentState = new IntentState <ResultType>(Intent, RelativeTime, Layer); return(newIntentState); }