/// <summary> /// Smoothly adjusts <see cref="Drawable.X"/> or <see cref="Drawable.Y"/> over time. /// </summary> /// <returns>A <see cref="TransformSequence{T}"/> to which further transforms can be added.</returns> public static TransformSequence <T> MoveTo <T>(this TransformSequence <T> t, Direction direction, float destination, double duration = 0, Easing easing = Easing.None) where T : Drawable => t.MoveTo(direction, destination, duration, new DefaultEasingFunction(easing));
/// <summary> /// Smoothly adjusts <see cref="Drawable.Position"/> over time. /// </summary> /// <returns>A <see cref="TransformSequence{T}"/> to which further transforms can be added.</returns> public static TransformSequence <T> MoveTo <T>(this TransformSequence <T> t, Vector2 newPosition, double duration = 0, Easing easing = Easing.None) where T : Drawable => t.MoveTo(newPosition, duration, new DefaultEasingFunction(easing));