Implemented getLength

這個提交存在於:
Arnaud Vergnet 2020-03-20 14:44:43 +01:00
父節點 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

未顯示二進位檔案。