예제 #1
0
 private static float interpolateBezier(CurveAnchor lhs, CurveAnchor rhs, float process)
 {
     throw new NotImplementedException();
 }
예제 #2
0
 public float interpolate(CurveAnchor rhs, float process, string type)
 {
     return(dict[type](this, rhs, process));
 }
예제 #3
0
 private static float interpolateLinear(CurveAnchor lhs, CurveAnchor rhs, float process)
 {
     return(lhs.Value + (process - lhs.Time) / (rhs.Time - lhs.Time) * (rhs.Value - lhs.Time));
 }