예제 #1
0
 public SegmentedLinearIntent(TypeOfValue startValue, TypeOfValue endValue, TimeSpan timeSpan,
                              Interpolator <TypeOfValue> interpolator = null)
     : this(startValue, endValue, timeSpan)
 {
     interpolator = interpolator ?? Interpolator.Interpolator.Create <TypeOfValue>();
     _segments    = new LinearInterpolatedIntentSegmentCollection <TypeOfValue>(startValue, endValue, timeSpan, interpolator);
 }
예제 #2
0
 private SegmentedLinearIntent(TypeOfValue startValue, TypeOfValue endValue, TimeSpan timeSpan,
                               LinearInterpolatedIntentSegmentCollection <TypeOfValue> segments)
     : this(startValue, endValue, timeSpan)
 {
     _segments = segments;
 }