Implemented getLength
這個提交存在於:
父節點
3bba019763
當前提交
b070983a49
共有 2 個檔案被更改,包括 6 行新增 和 4 行删除
|
@ -210,11 +210,13 @@ public class Path {
|
||||||
*
|
*
|
||||||
* @return Total length of the path (in meters).
|
* @return Total length of the path (in meters).
|
||||||
*
|
*
|
||||||
* @deprecated Need to be implemented.
|
|
||||||
*/
|
*/
|
||||||
public float getLength() {
|
public float getLength() {
|
||||||
// TODO:
|
float length = 0;
|
||||||
return 0;
|
for (Arc a : this.arcs) {
|
||||||
|
length += a.getLength();
|
||||||
|
}
|
||||||
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
二進制
uml.dia
二進制
uml.dia
未顯示二進位檔案。
載入中…
新增問題並參考