Lentgh
This commit is contained in:
parent
046ef12ff9
commit
36dfcf8e30
2 changed files with 5 additions and 1 deletions
|
@ -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 ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue