Ejemplo n.º 1
0
 /// <summary>
 /// Add key frame to curve.
 /// </summary>
 /// <param name="keyFrame">Key frame to add.</param>
 public void AddKeyFrame(KeyFrame keyFrame)
 {
     frames.Add(keyFrame);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Evaluate the value of hermite curve at time on the range from start key frame to end key frame.
 /// </summary>
 /// <param name="start">Start key frame of hermite curve.</param>
 /// <param name="end">End key frame of hermite curve.</param>
 /// <param name="t">Time of curve to evaluate value.</param>
 /// <returns>The value of hermite curve at time on the range from start key frame to end key frame.</returns>
 public static double Evaluate(KeyFrame start, KeyFrame end, double t)
 {
     return(Hermite.Evaluate(start.time, end.time, start.value, end.value, start.outTangent, end.inTangent, t));
 }