Compare commits
2 commits
853edfb344
...
bf7f8e231d
| 작성자 | SHA1 | 날짜 | |
|---|---|---|---|
| bf7f8e231d | |||
| b8aeab9180 |
1개의 변경된 파일과 5개의 추가작업 그리고 6개의 파일을 삭제
|
|
@ -209,8 +209,6 @@ public class Path {
|
|||
* Compute the length of this path (in meters).
|
||||
*
|
||||
* @return Total length of the path (in meters).
|
||||
*
|
||||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public float getLength() {
|
||||
float retour = 0 ;
|
||||
|
|
@ -227,12 +225,13 @@ public class Path {
|
|||
*
|
||||
* @return Time (in seconds) required to travel this path at the given speed (in
|
||||
* kilometers-per-hour).
|
||||
*
|
||||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public double getTravelTime(double speed) {
|
||||
// TODO:
|
||||
return 0;
|
||||
double retour = 0 ;
|
||||
for (Arc arc : arcs) {
|
||||
retour += arc.getTravelTime(speed);
|
||||
}
|
||||
return retour;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
불러오는 중…
Reference in a new issue