Exemplo n.º 1
0
 /// <summary>
 /// Add key frame to curve.
 /// </summary>
 /// <param name="frame">Key frame to add.</param>
 public void AddFrame(KeyFrame frame)
 {
     frames.Add(frame);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Remove key frame.
 /// </summary>
 /// <param name="frame">Key frame to remove.</param>
 public void RemoveFrame(KeyFrame frame)
 {
     frames.Remove(frame);
 }
Exemplo n.º 3
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 Vector3 Evaluate(KeyFrame start, KeyFrame end, float t)
 {
     return(Evaluate(start.time, start.point, start.outTangent, end.time, end.point, end.inTangent, t));
 }