public T this[float time, ValueEasingDelegate <T> easing = null] { set { var step = new AnimationKeyPoint <T> { Time = time, Value = value, Easing = easing ?? ((start, end, advance) => advance < 1f ? start : end) }; _list.Add(step); _list.Sort(); } }
public int CompareTo(AnimationKeyPoint <T> other) { return(Time.CompareTo(other.Time)); }