getTravelTime is done
This commit is contained in:
parent
c97fc51b94
commit
623774148d
1 changed files with 3 additions and 2 deletions
|
@ -213,8 +213,9 @@ public class Path {
|
|||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public double getTravelTime(double speed) {
|
||||
// TODO:
|
||||
return 0;
|
||||
double longueur = (double) this.getLength() / 1000;
|
||||
double temps = (double) (longueur / speed) * 3600;
|
||||
return temps;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue