iTween.RectUpdate C# (CSharp) Method

RectUpdate() public static method

Returns a Rect that is eased between a current and target value by the supplied speed.
public static RectUpdate ( Rect currentValue, Rect targetValue, float speed ) : Rect
currentValue Rect /// A the starting or initial value ///
targetValue Rect /// 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 Rect
    public static Rect RectUpdate(Rect currentValue, Rect targetValue, float speed)
    {
        Rect diff = new Rect(FloatUpdate(currentValue.x, targetValue.x, speed), FloatUpdate(currentValue.y, targetValue.y, speed), FloatUpdate(currentValue.width, targetValue.width, speed), FloatUpdate(currentValue.height, targetValue.height, speed));
        return (diff);
    }
iTween