iTween.Vector2Update C# (CSharp) Method

Vector2Update() public static method

Returns a Vector2 that is eased between a current and target value by the supplied speed.
public static Vector2Update ( Vector2 currentValue, Vector2 targetValue, float speed ) : Vector2
currentValue Vector2 /// A the starting or initial value ///
targetValue Vector2 /// A the target value that the current value will be eased to. ///
speed float /// A to be used as rate of speed (larger number equals faster animation) ///
return Vector2
    public static Vector2 Vector2Update(Vector2 currentValue, Vector2 targetValue, float speed)
    {
        Vector2 diff = targetValue - currentValue;
        currentValue += (diff * speed) * Time.deltaTime;
        return (currentValue);
    }
iTween