コード例 #1
0
ファイル: Path.java プロジェクト: thenewcomposer/LightDrive
  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
ファイル: Path.java プロジェクト: thenewcomposer/LightDrive
 public long getMSElapsed() {
   return Math.min(Time.msTime() - timer, duration);
 }
コード例 #3
0
ファイル: Path.java プロジェクト: thenewcomposer/LightDrive
 public void reset() {
   timer = Time.msTime();
 }