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