Lentgh
This commit is contained in:
父節點
046ef12ff9
當前提交
36dfcf8e30
共有 2 個文件被更改,包括 5 次插入 和 1 次删除
|
@ -214,7 +214,11 @@ public class Path {
|
||||||
*/
|
*/
|
||||||
public float getLength() {
|
public float getLength() {
|
||||||
// TODO:
|
// TODO:
|
||||||
return 0 ;
|
float length=0;
|
||||||
|
for (Arc arc : arcs) {
|
||||||
|
length += arc.getLength();
|
||||||
|
}
|
||||||
|
return length ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Binary file not shown.
載入中…
Reference in a new issue