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