/// <summary> /// Continue the path with a new ones /// </summary> /// <param name="path">The path to continue</param> /// <param name="newPaths">An array of new paths to adds</param> /// <returns>An array of paths including the new ones</returns> public static Path2D[] ContinueTo(this Path2D path, params Path2D[] newPaths) { return(path.ToArray().ContinueTo(newPaths)); }
/// <summary> /// Contains a single path in an array /// </summary> /// <param name="path">The path to add to the array</param> /// <returns>An array of paths including the new ones</returns> public static Path2D[] ToArray(this Path2D path) { return(new[] { path }); }
/// <summary> /// Continue the path with a new one /// </summary> /// <param name="path">The path to continue</param> /// <param name="endX">Horizontal value of the next point to follow</param> /// <param name="endY">Vertical value of the next point to follow</param> /// <param name="duration">Duration of the animation</param> /// <param name="delay">Starting delay</param> /// <param name="function">Animation controller function</param> /// <returns>An array of paths including the newly created one</returns> public static Path2D[] ContinueTo(this Path2D path, float endX, float endY, ulong duration, ulong delay, AnimationFunctions.Function function) { return(path.ToArray().ContinueTo(endX, endY, duration, delay, function)); }
/// <summary> /// Continue the path with a new one /// </summary> /// <param name="path">The path to continue</param> /// <param name="endX">Horizontal value of the next point to follow</param> /// <param name="endY">Vertical value of the next point to follow</param> /// <param name="duration">Duration of the animation</param> /// <param name="delay">Starting delay</param> /// <returns>An array of paths including the newly created one</returns> public static Path2D[] ContinueTo(this Path2D path, float endX, float endY, ulong duration, ulong delay) { return(path.ToArray().ContinueTo(endX, endY, duration, delay)); }
/// <summary> /// Continue the path with a new one /// </summary> /// <param name="path">The path to continue</param> /// <param name="end">Next point to follow</param> /// <param name="duration">Duration of the animation</param> /// <param name="delay">Starting delay</param> /// <returns>An array of paths including the newly created one</returns> public static Path2D[] ContinueTo(this Path2D path, Float2D end, ulong duration, ulong delay) { return(path.ToArray().ContinueTo(end, duration, delay)); }
/// <summary> /// Continue the path with a new one /// </summary> /// <param name="path">The path to continue</param> /// <param name="end">Next point to follow</param> /// <param name="duration">Duration of the animation</param> /// <param name="function">Animation controller function</param> /// <returns>An array of paths including the newly created one</returns> public static Path2D[] ContinueTo(this Path2D path, Float2D end, ulong duration, AnimationFunctions.Function function) { return(path.ToArray().ContinueTo(end, duration, function)); }
/// <summary> /// Initializes a new instance of the <see cref="Animator2D"/> class. /// </summary> /// <param name="path"> /// The path. /// </param> /// <param name="maxFps"> /// The max fps. /// </param> // ReSharper disable once UnusedMember.Global public Animator2D(Path2D path, Timer.FpsLimiter maxFps = Timer.FpsLimiter.Fps30) : this(new[] { path }, maxFps) { }