Пример #1
0
 private SegmentedLinearIntent(TypeOfValue startValue, TypeOfValue endValue, TimeSpan timeSpan)
 {
     StartValue   = startValue;
     EndValue     = endValue;
     TimeSpan     = timeSpan;
     _intentState = new IntentState <TypeOfValue>(this, TimeSpan.Zero);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
        public IIntentState Clone()
        {
            IntentState <ResultType> newIntentState = new IntentState <ResultType>(Intent, RelativeTime, Layer);

            return(newIntentState);
        }