示例#1
0
        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)));
        }
示例#2
0
 public static EvalAtNormTime <float> Float3(float startValue, float controlValue, float endValue, ThreeValueEasing mode)
 {
     return(time => Easing.threeValueEasings[mode](startValue, controlValue, endValue, time));
 }