forked from lebotlan/BE-Graphes
path.getLength
This commit is contained in:
parent
941ff07d89
commit
ac08a9ded0
1 changed files with 5 additions and 3 deletions
|
|
@ -195,11 +195,13 @@ public class Path {
|
||||||
* Compute the length of this path (in meters).
|
* Compute the length of this path (in meters).
|
||||||
*
|
*
|
||||||
* @return Total length of the path (in meters).
|
* @return Total length of the path (in meters).
|
||||||
* @deprecated Need to be implemented.
|
|
||||||
*/
|
*/
|
||||||
public float getLength() {
|
public float getLength() {
|
||||||
// TODO:
|
float result = 0f;
|
||||||
return 0;
|
for (Arc arc : arcs) {
|
||||||
|
result += arc.getLength();
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue