/// <summary> /// Initializes a new instance of the <see cref="Animator3D"/> class. /// </summary> /// <param name="paths"> /// The paths. /// </param> /// <param name="maxFps"> /// The max fps. /// </param> public Animator3D(Path3D[] paths, Timer.FpsLimiter maxFps = Timer.FpsLimiter.Fps30) { this.XAxisAnimator = new Animator(maxFps); this.YAxisAnimator = new Animator(maxFps); this.ZAxisAnimator = new Animator(maxFps); this.SetPaths(paths); }
/// <summary> /// Initializes a new instance of the <see cref="Animator"/> class. /// </summary> /// <param name="path"> /// The path. /// </param> /// <param name="maxFps"> /// The max fps. /// </param> // ReSharper disable once UnusedMember.Global public Animator(Path path, Timer.FpsLimiter maxFps = Timer.FpsLimiter.Fps30) : this(new[] { path }, maxFps) { }
/// <summary> /// Initializes a new instance of the <see cref="Animator"/> class. /// </summary> /// <param name="maxFps"> /// The max fps. /// </param> public Animator(Timer.FpsLimiter maxFps = Timer.FpsLimiter.Fps30) : this(new Path[] { }, maxFps) { }
/// <summary> /// Initializes a new instance of the <see cref="Animator"/> class. /// </summary> /// <param name="paths"> /// The paths. /// </param> /// <param name="maxFps"> /// The max fps. /// </param> public Animator(Path[] paths, Timer.FpsLimiter maxFps = Timer.FpsLimiter.Fps30) { this.CurrentStatus = Status.Stopped; this.SetPaths(paths); this.timer = new Timer(this.Elapsed, maxFps); }
/// <summary> /// Initializes a new instance of the <see cref="Animator2D"/> class. /// </summary> /// <param name="paths"> /// The paths. /// </param> /// <param name="maxFps"> /// The max fps. /// </param> public Animator2D(Path2D[] paths, Timer.FpsLimiter maxFps = Timer.FpsLimiter.Fps30) { this.HorizontalAnimator = new Animator(maxFps); this.VerticalAnimator = new Animator(maxFps); this.SetPaths(paths); }