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