methode getLength terminee
This commit is contained in:
parent
68b73d1b17
commit
fe83a92509
1 changed files with 6 additions and 2 deletions
|
@ -198,8 +198,12 @@ public class Path {
|
|||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public float getLength() {
|
||||
// TODO:
|
||||
return 0;
|
||||
float length = 0f;
|
||||
for(Arc arcs : this.arcs)
|
||||
{
|
||||
length += arcs.getLength();
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue