Esempio n. 1
0
        public float Interpolate()
        {
            if (!Enabled)
            {
                return(target);
            }

            current = (float)BeardedMath.Lerp(current, target, LerpT);
            return(current);
        }
Esempio n. 2
0
 public static float Interpolate(float from, float to, float t)
 {
     return(BeardedMath.Lerp(from, to, t));
 }
Esempio n. 3
0
 public static double Interpolate(double from, double to, float t)
 {
     return(BeardedMath.Lerp(from, to, t));
 }
 public static T Interpolate(T from, T to, float t)
 {
     return(BeardedMath.Lerp(from, to, t));
 }