iTween.Vector3Update C# (CSharp) Method

Vector3Update() public static method

Returns a Vector3 that is eased between a current and target value by the supplied speed.
public static Vector3Update ( Vector3 currentValue, Vector3 targetValue, float speed ) : Vector3
currentValue Vector3 /// A the starting or initial value ///
targetValue Vector3 /// 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 Vector3
    public static Vector3 Vector3Update(Vector3 currentValue, Vector3 targetValue, float speed)
    {
        Vector3 diff = targetValue - currentValue;
        currentValue += (diff * speed) * Time.deltaTime;
        return (currentValue);
    }
iTween