Exemple #1
0
  public Path(EaseAlgorithm ex, EaseAlgorithm ey, Point2D start, Point2D end, long duration) {
    this.ex = ex;
    this.ey = ey;

    this.start = start;
    this.end = end;

    this.duration = duration;

    timer = Time.msTime();
  }
Exemple #2
0
 public long getMSElapsed() {
   return Math.min(Time.msTime() - timer, duration);
 }
Exemple #3
0
 public void reset() {
   timer = Time.msTime();
 }