/// <summary> /// Eases with the specified ease type. /// </summary> public static Rectangle EaseWithType(TweenEaseType easeType, double amount, Rectangle startValue, Rectangle change) { return(new Rectangle( (int)TweenedDouble.EaseWithType(easeType, amount, startValue.X, change.X), (int)TweenedDouble.EaseWithType(easeType, amount, startValue.Y, change.Y), (int)TweenedDouble.EaseWithType(easeType, amount, startValue.Width, change.Height), (int)TweenedDouble.EaseWithType(easeType, amount, startValue.Height, change.Height))); }
/// <summary> /// Eases with the specified ease type. /// </summary> public static Vector2 EaseWithType(TweenEaseType easeType, double amount, Vector2 startValue, Vector2 change) { return(new Vector2((float)TweenedDouble.EaseWithType(easeType, amount, startValue.X, change.X), (float)TweenedDouble.EaseWithType(easeType, amount, startValue.Y, change.Y))); }