Exemplo n.º 1
0
 public void Bind(NDistributionFloatCurve curve)
 {
     m_DataSource = curve;
     GetStream().Clear();
     for (int i = 0; i < m_DataSource.KeyCount; ++i)
     {
         KeyPoint kp = new FloatKeyPoint();
         kp.Time = m_DataSource.GetTime(i);
         kp.SetValue(0, m_DataSource.GetValue(i));
         m_Value.Add(kp);
     }
 }
Exemplo n.º 2
0
        public override void AddKeyPoint(float time)
        {
            float v = m_DataSource.GetValue(time);

            m_DataSource.AddKey(v, time);
            FloatKeyPoint kp = new FloatKeyPoint();

            kp.m_Value = v;
            kp.Time    = time;
            m_Value.Add(kp);
            KeyPointComparer kpc = new KeyPointComparer();

            m_Value.Sort(kpc);
        }