public TweenedRectangle(Game game, Rectangle initialValue) { _x = new TweenedDouble(game, initialValue.X); _y = new TweenedDouble(game, initialValue.Y); _w = new TweenedDouble(game, initialValue.Width); _h = new TweenedDouble(game, initialValue.Height); }
/// <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))); }
public TweenedVector2(Game game, Vector2 initialValue) { _x = new TweenedDouble(game, initialValue.X); _y = new TweenedDouble(game, initialValue.Y); }