Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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)
 {
 }
Exemplo n.º 3
0
 /// <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)
 {
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 5
0
 /// <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);
 }