public override void AddKeyPoint(float time) { Vector3 v = m_DataSource.GetValue(time); m_DataSource.AddKey(v, time); Vector3KeyPoint kp = new Vector3KeyPoint(); kp.m_Value = v; kp.Time = time; m_Value.Add(kp); KeyPointComparer kpc = new KeyPointComparer(); m_Value.Sort(kpc); }
public override void AddKeyPoint(float time) { Color4f v = m_DataSource.GetValueByTime(time); m_DataSource.AddKey(v, time); ColorKeyPoint kp = new ColorKeyPoint(); kp.m_Value = v; kp.Time = time; m_Value.Add(kp); KeyPointComparer kpc = new KeyPointComparer(); m_Value.Sort(kpc); }
//按照时间从小到大的排序 public virtual void Sort() { KeyPointComparer kpc = new KeyPointComparer(); GetStream().Sort(kpc); }