Exemplo n.º 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();
  }
Exemplo n.º 2
0
 public long getMSElapsed() {
   return Math.min(Time.msTime() - timer, duration);
 }
Exemplo n.º 3
0
 public void reset() {
   timer = Time.msTime();
 }