Compare commits

...

2 commit

作者 SHA1 備註 提交日期
ce66d2162b Length 2023-03-22 10:21:23 +01:00
36dfcf8e30 Lentgh 2023-03-22 10:19:28 +01:00
共有 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 ;
} }
/** /**