This commit is contained in:
El Haji Fofana 2023-03-22 10:19:28 +01:00
parent 046ef12ff9
commit 36dfcf8e30
2 changed files with 5 additions and 1 deletions

View file

@ -214,7 +214,11 @@ public class Path {
*/
public float getLength() {
// TODO:
return 0 ;
float length=0;
for (Arc arc : arcs) {
length += arc.getLength();
}
return length ;
}
/**