public static EvalAtNormTime <Vector2> Vector2_3(Vector2 startValue, Vector2 controlValue, Vector2 endValue, ThreeValueEasing mode) { var xEval = Float3(startValue.x, controlValue.x, endValue.x, mode); var yEval = Float3(startValue.y, controlValue.y, endValue.y, mode); return(time => new Vector2(xEval(time), yEval(time))); }
public static EvalAtNormTime <float> Float3(float startValue, float controlValue, float endValue, ThreeValueEasing mode) { return(time => Easing.threeValueEasings[mode](startValue, controlValue, endValue, time)); }