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 StaticIntentState <TypeOfValue>(startValue); }
public StaticArrayIntent(TimeSpan frameTime, T[] values, TimeSpan timeSpan) { if (values.Length == 0) { throw new ArgumentOutOfRangeException("values"); } TimeSpan = timeSpan; _values = values; _frameTime = frameTime; _intentState = new StaticIntentState <T>(values[0]); }
public StaticIntent(TypeOfValue value, TimeSpan timeSpan) { Value = value; TimeSpan = timeSpan; _intentState = new StaticIntentState <TypeOfValue>(value); }